Questions tagged [django-1.5]

Django 1.5 is a version of the Django framework, released in February 2013. Please only use this tag if your question relates specifically to this version.

Django 1.5 is a version of the Django framework, released in February 2013. Please only use this tag if your question relates specifically to this version.

See the release notes for more details.

275 questions
9
votes
3 answers

django countries currency code

I am using django_countries to show the countries list. Now, I have a requirement where I need to show currency according to country. Norway - NOK, Europe & Afrika (besides UK) - EUR, UK - GBP, AMERICAS & ASIA - USDs. Could this be achieved through…
Maverick
  • 2,738
  • 24
  • 91
  • 157
9
votes
1 answer

loading custom tag filters from another app

I am really confused as to how could I load a custom tag filter from another app. I have a similar problem like this Load custom template tag from another application? And, I am doing it the same way, but still it doesnt load up and I am getting…
Maverick
  • 2,738
  • 24
  • 91
  • 157
9
votes
2 answers

Verbose deprecation warnings in Django

After upgrading from django 1.3 to django 1.5 I started to see these DeprecationWarnings during the test run: path_to_virtualenv/lib/python2.6/site-packages/django/http/request.py:193: DeprecationWarning: HttpRequest.raw_post_data has been…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
8
votes
2 answers

Displaying both slug and ID in URL, but route by ID only in Django

What I'm trying to achieve is: my News app should display a slug, but only query the article by ID in the form of /news/24/this-is-the-slug Unfortunately I'm getting a NoReverseMatch: Reverse for 'news_detail' with arguments '('',)' and keyword…
weeheavy
  • 253
  • 3
  • 18
8
votes
1 answer

Django south circular dependency

I have an app (let's call it MyApp) in a Django 1.5 project. MyApp defines a custom user model (MyUser). The project uses another app (AnotherApp) which references MyUser. MyApp references fields in AnotherApp. Everything has been working fine on my…
askvictor
  • 3,621
  • 4
  • 32
  • 45
8
votes
4 answers

How to configure Django's "staticfiles" app to list directory contents?

I'm using Django's built-in web server, in DEBUG mode. This is part of my settings.py: STATIC_ROOT = '/home/user/static_root' STATIC_URL = '/static/' STATICFILES_DIRS = ( '/abs/path/to/static/dir', ) STATICFILES_FINDERS = ( …
E.Z.
  • 6,393
  • 11
  • 42
  • 69
8
votes
1 answer

Why is "blank" is missing in django.forms.CharField, but present in django.db.models.CharField?

Background I have a model with two fields that are set the blank: class News(models.Model): …
rzetterberg
  • 10,146
  • 4
  • 44
  • 54
8
votes
2 answers

Custom User Model error

I'm trying to set up my custom user model in Django. The reason is that I want to use email as the username, and remove the username field entirely. I've run into a error, that I just can't figure out. Manager isn't available; User has been swapped…
Rookie
  • 1,590
  • 5
  • 20
  • 34
8
votes
3 answers

How to fix localflavor deprecation warning in django 1.5?

I've migrated an existing django 1.3 to django 1.5. everything seems ok. However, I have a deprecation warning due to localflavor when i lauch python manage.py runserver ...\env\lib\site-packages\django\contrib\loca lflavor__init__.py:2: …
luc
  • 41,928
  • 25
  • 127
  • 172
7
votes
1 answer

Django 1.5 is finally insecure?

I am django user and using 1.5 version and almost finish developing application. But I finally realized that whenever I read the documents of django 1.5 there is a banner on the top that 1.5 is insecure version.. Should I have to move to higher…
nextdoordoc
  • 1,727
  • 6
  • 20
  • 30
7
votes
2 answers

Reverse Not Found Error

If I have a URL Like this: url(r'^reset/(?P\w+)/(?P\w+)/$', 'django.contrib.auth.views.password_reset_confirm', name="reset_password") and a URL tag like this: {% url 'reset_password' uid=uid token=token %} Why do I get this error…
user1427661
  • 11,158
  • 28
  • 90
  • 132
7
votes
1 answer

django admin save_model not saving model changes

This is my admin.py: class TransactionInfoAdmin(admin.ModelAdmin): search_fields=['transactionId','subscriptionInfo__customerNumber'] save_on_top = False def has_add_permission(self,request): return False def…
Maverick
  • 2,738
  • 24
  • 91
  • 157
7
votes
8 answers

Django 1.5: Accessing custom user model fields in models.py

I'm working on a Django 1.5 project and I have a custom user model (let's call it CustomUser). Another app (SomeApp) needs to reference this custom user model. For the purposes of ForeignKey and such, the Django documentation says to use User =…
askvictor
  • 3,621
  • 4
  • 32
  • 45
7
votes
2 answers

What is the best way to learn Django 1.5?

What is the best way to learn Django 1.5 thouroughly? I have been a .NET developer and have a really good understanding of OOP, HTML5, CSS and JavaScript. I also have an entry-level knowledge of Python. I am completely new to MVC (or MVT, in this…
ilovebigmacs
  • 983
  • 16
  • 28
7
votes
1 answer

How do I get Django 1.5 Custom User Model and Social Auth to work?

Django Social Auth (0.7.22) is reported to support Custom User Models but I have no been able to get this to work. In my case I am using Google's Oauth2 which I have working with a non-custom-user-model. With the Custom User Model I get correctly…
1 2
3
18 19