All Questions
5 questions
0
votes
1
answer
2k
views
Django foreign key is not set and hence unable to save form
I have a simple foreign key relationship between two tables. I am able to save the parent, but am unable to save the child which has a foreign key to the parent. This is what my models look like:
...
0
votes
1
answer
3k
views
Django redirecting to another view with a bound form
I am using Python 2.7, Django 1.3.1.
I am trying to implement a sign in functionality that can be called from arbitrary page and redirects to the same page without any code duplication. The current ...
0
votes
1
answer
458
views
django1.3 static file problem
hi, I am new to django,I doing user authentication for my project,Well its works properly.
I have created a folder named 'static' in my projects root folder[now am in local devlopment] and necessary ...
3
votes
3
answers
4k
views
Django 1.3 CreateView/ModelForm: unique_together validation with one field excluded from form
I am looking for a simple answer by example to this common problem. The answers I found so far leave out critical points for us beginners.
I have an app where almost every model has a ForeignKey to ...
3
votes
1
answer
3k
views
Django 1.3 CreateView, ModelForm and filtering fields by request.user
I am trying to filter a field on a ModelForm. I am subclassing the generic CreateView for my view. I found many references to my problem on the web, but the solutions do not seem to work (for me at ...