Hi,
I was wondering if it was possible to do form validation in django views. I have usecases where I have one view with 2 forms. Each forms has their own clean method and such, but what i can't do at the form level is to check if one value is present in the one form, do something else in the other form.
This is simple to check in a vi...
I have a Django app that runs a tool and displays the results from the tool back to the user using a Django template. Sometimes Django does not display the results. It doesn't complain about anything, it just doesn't display the results. I'm guessing this is something to do with one or more of the characters in the results being illegal ...
Is there any facebook like chat application to integrate to django.If so please give an example and the source link
Thanks..
...
Hi folks,
I'm using Django in order to serve a web service. I have only access to FTP and code refresh at the moment. No access to command-line or executing any kind of executable.
I am using a Windows Server 2005 machine.
Would I be able to use Crypto just by placing the folder within my Django project?
Are there any good alternativ...
Dear Everybody
I would like to understand how I can access and navigate Python and Django help.
in Django I cd to my directory and entered the following command to access help of the manage.py:
python manage.py help
And I would like to get info on the commands. Here I have to type:
Type 'manage.py help ' for help on a specific su...
How to turn it on?
According to this http://docs.djangoproject.com/en/1.2/topics/i18n/internationalization/
I put into my template /var/www/project/template/index.html
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% get_available_languages as LANGUAGES %}
<html><body><h1>{% trans "It works!" $}</h1>
get_current_language...
The PyFacebook documentation states that:
Note: Applications built with djangofb.py are not compatible with django 1.x. Download django-facebookconnect instead.
Is this true? Has anyone managed to work this with Django 1.2.1?
Thank you,
Liz
...
Hi folks,
does a portable version of pyCrypto exist? would one be easy to create?
Help would be awesome!
...
Hi there,
i have a simple view in wich i'm saving a form.
the code seems 'clean',but i can't get rid of the error : "The view didn't return an HttpResponse object."
Though i've searched on the web, i did not find a relevant indication.
def classroom_privacy(request,classname):
theclass = Classroom.objects.get(classname=class...
Hi
Is there any Cheat Sheet or Document where I can see all the build-in modules, functions, commands etc in Django and or Python and where I will get an overview of ALL possible elements I could use. I am sure this is would be a big file/image etc , but it would be very helpful to know what commands I could use.
Any suggestions would ...
These is my django URLconf:
urlpatterns = patterns('',
('^hello/$', hello),
(r'^polls/$', 'mysite.polls.views.index'),
(r'^polls/(?P<poll_id>\d+)/$', 'mysite.polls.views.detail'),
(r'^polls/(?P<poll_id>\d+)/results/$', 'mysite.polls.views.results'),
(r'^polls/(?P<poll_id>\d+)/vote/$', 'mysite.polls.views.vote'),
...
I have a Django application running locally and I'd like to test the "send_mail()" functionality. Currently, I'm able to turn on postfix using the following command in Terminal:
sudo postfix start
Once I turn on postfix, I run the following command in Terminal:
telnet localhost 25
Those two steps seem to be working because the "se...
I haven't used Django's and Python's built in testing capabilities yet, but I want to finally start... And one of the most obvious things that I'd like to keep in check during the entire development process is that all my pages validate in all possible scenarios.
What's the best way to do this?
...
After doing a bit of googling, I found these projects to help with serving static files:django-static with Nginx, and django-staticfiles.
Is there anybody that has had experience with one, or preferably both of these approaches, and that can recommend one or the other, or a 3rd?
...
I have a Django app that uses MySQL and the InnoDB engine for storage. For some reason, Django sometimes leaves locks in place, even after the query has completed. (I can see them with Innotop).
The only transaction-handling stuff that I do in my code is that I have django.db.transaction.commit_on_success specified for some of my save...
I'm developing a site with a login box on the base.html template page. For all the pages that require the user to be logged in, I'm using the login_required decorator. However, I'd like the user to be able to login on the other pages if they want to.
Among the things that the "login_required" decorator does is handle the nuts and bolts ...
I'm looking to categorize my entries, the catch is there are multiple levels of categories I want. An example:
css
layout
floats
specificity, selectors
html
html 5
In this example, css and html are parent categories, css has 2 children and layout has a child of floats.
I suppose the schema I would need would be
...
Sometimes when I run manage.py I get a cryptic message in red that says Error: cannot import name <Name> and nothing else.
Obviously, this is a simple import or syntax error and with a little looking around, I can usually fix it. Other times however it takes me quite a while to figure out what exactly I did wrong. Is there a way to ge...
go = Content.objects.get(name="baby")
# go should be None, since nothing is in the database.
...
I am trying to get started with South.
I had an existing database.
I added South (syncdb, schemamigration --initial).
I updated models.py to add a field.
I ran ./manage.py schemamigration myapp --auto
It seemed to find the field and said I could apply this with ./manage.py migrate myapp
Doing that gave the error:
django.db.utils...