I'm having a bit of a perplexing issue with Django 1.7.1 running on Arch Linux using Python 3.4.2. If it matters I'm using Pycharm 3.4 as my IDE.

I have the following Python modules installed in my virtualenv:

bcrypt
boto
braintree
cffi
django-braces
django-debug-toolbar
psycopg2
pycparser
requests
six
sqlparse

I have a FormView which takes a Django form object (not a ModelForm) and tries to display a form. But when I view the template in a browser the form itself is not shown.

At first I thought that for some reason the form context object was not being passed to the template but I checked the template context object (via django-debug-toolbar) and the form context variable is available in the template and is the correct object.

I've tried various things including changing the view to a CreateView object and obviously changing the form to ModelForm which does display the form but for various reasons I'd rather have just a standard form rather than a ModelForm and use FormView.

Here is the code in question:

http://dpaste.com/1S6W861

I have absolutely no idea what the problem is. Pretty much the same code worked perfectly on Python 2.7.x and the only difference I can see is that I am now using Python 3.4.x but I'm positive this can't be the issue as it would have been picked up way before now.

Any help is appreciated as I'm finding this really perplexing.

If I've left anything out that would be useful let me know and I'll post the information up.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/546E4E63.60207%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to