0
votes
0answers
25 views

adding custom fields to django registration

I am using the django registration module and trying to add custom fields: RegistrationForm.base_fields.update(FarmerForm.base_fields) class CustomRegistrationForm(RegistrationForm): def ...
0
votes
1answer
35 views

Django Query doesn't match

I have the following Django Model: class State(models.Model): name = models.CharField(max_length=80,null=False) latitude = models.CharField(max_length=80,null=False) longitude = ...
1
vote
1answer
20 views

Django urls.py gives a 404 error while trying to access a URL

I'm trying to create a Django app that uses these two urls, browse and account but I am getting an error when I try to access either of these two. Using the URLconf defined in mediasite.urls, Django ...
0
votes
0answers
27 views

Error in importing model in django

Error in importing model in another file. Basically I want to use >>> from mysite.blog.models import Blog >>> b = Blog(name='Beatles Blog', tagline='All the latest Beatles news.') ...
0
votes
1answer
22 views

Can't make dump work

I'm trying to upload my database to pythonanywhere, I'm using the console to make the upload, but I can't I been trying a lot of thing, but I always get a syntax error. my command looks like this: ...
0
votes
1answer
21 views

how to get file relative path with pythons os - django python

I am getting all file names under directory dir: files = os.listdir(dir) and after rendering file names to template, i am showing them in template like this: {% for each in files %} <li> ...
0
votes
2answers
21 views

Django URL namespace preventing other url from resolving

In my base urls.py file, I have these urls: urlpatterns = patterns('', url(r'', include('apps.trainee.urls', namespace='trainee')), url(r'', include('apps.landing.urls', ...
0
votes
1answer
26 views

Django conditionally excluding fields

I am new to Django and am having some trouble with filtering. Please excuse the contrived example. I have some model for events, with a one to many relationship with attendees. From my set of ...
0
votes
1answer
22 views

LinkedIn Authentication

Authentication is failing I'm trying without success to get my users signed into LinkedIn via Oauth authentication in Python. I'm using Django in python and not using any third party social ...
0
votes
0answers
9 views

AssertionError with custom user model django-allauth

I'm new to django, recently i decide to integrate django allauth for using login with (facebook and google+), i work with a custom model (django 1.5), and a one to one userprofile model, my custom ...
0
votes
1answer
42 views

Python : Variable in a different module doesn't get changed

I have having issues with updating variables in one module from another module. I'll put it in the simplest way possible. mymod.py params= { "name" : "system_user" } config.py import myapp.mymod ...
0
votes
1answer
28 views

Django and multi-image upload form

I have this form that includes around 25 inputs on the same. It includes a main image input and the rest are some text inputs or drop down menus. The problem is that I also need the user to upload ...
0
votes
0answers
16 views

Django model proxy in diffrent package

I want to use one model for global scope for app. In future, probably models will be changed. I created backend.py file in root directory of project with model wrapper (I think it's the best solution ...
1
vote
1answer
30 views

How can I import many values to one foreign key value

I have an import script that imports from a csv file, but one value (customer) can repeat itself. So for example name will always be different, but customer (john) can have 5 entries. I need to import ...
0
votes
1answer
11 views

Django Simple Captcha image size

How can I change captcha image size and text padding in image? I read official docs and havn't found any of those.

15 30 50 per page