django-1.5 Questions
2
Solved
I am trying to use the email field in the default Django user model as the username. I am using Django 1.5 and I saw that the default user has a USERNAME_FIELD property.
In my project, I would like...
Villeneuve asked 27/3, 2013 at 19:50
8
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 su...
Vapor asked 4/7, 2013 at 11:57
1
Solved
I have two Models in Django. The first has the hierarchy of what job functions (positions) report to which other positions, and the second is people and what job function they hold.
class Position...
Shagbark asked 16/4, 2014 at 23:14
1
Solved
django-registration 1.0 now has support for django 1.5 custom user models. The django-registration documentation only has the following FAQ item about it:
I’m using Django 1.5 and a custom user ...
Brasher asked 28/7, 2013 at 13:57
2
Solved
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 ...
Gloucestershire asked 17/2, 2014 at 11:29
2
I am new to Django and I have been trying this for weeks, but could not find a way to solve this problem.
I want to store additional information like user mobile number, bank name, bank account. A...
Knighterrant asked 14/2, 2014 at 12:18
3
Solved
Hi I am trying to customize my inlines in django admin.
Here are my models:
class Row(models.Model):
name = models.CharField(max_length=255)
class Table(models.Model):
rows = models.ManyToMany...
Rammer asked 6/11, 2013 at 9:3
2
Throwing the following DatabaseError in Django 1.5.1 (and 1.5.0) and mysql when I runserver and attempt to load a local version of the web app:
DatabaseError at /
DatabaseWrapper objects crea...
Sutton asked 25/4, 2013 at 17:10
1
Solved
I have been developing using Django 1.5 a lot. Is it worth the time to shift from Django 1.5 to Django 1.6 or Django 1.7? I know, In 1.7, migration is into the core of Django. How different i...
Nubbin asked 25/12, 2013 at 4:38
1
Solved
Given a one-to-one extension a model, such as the Django User model:
class UserProfile(models.Model):
user = models.OneToOneField(User, related_name='profile', unique=True)
avatar = models.Image...
Actualize asked 18/12, 2013 at 8:22
1
I assigned a permission of a user in my Django 1.5 app.
When I list all user permissions with
In [1]: user.get_all_permissions()
Out[1]: set([u'profile.change_profile'])
I can see one permissi...
Taiwan asked 7/5, 2013 at 21:25
2
Solved
So I have this array of tuples:
[(u'030944', u'20091123', 10, 30, 0), (u'030944', u'20100226', 10, 15, 0)]
And I have this list of field names:
['id', 'date', 'hour', 'minute', 'interval']
I ...
Charcoal asked 12/12, 2013 at 10:25
2
Solved
I created an user app MyUser which is an extension of AbstractBaseUser. I was under the impression that the model MyUser will replace the standard Auth.User, as long as it is mentioned in settings....
Metaphysics asked 2/5, 2013 at 23:8
2
Solved
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...
Galbraith asked 28/6, 2013 at 7:51
2
Solved
I'm trying to migrate an old django application to django 1.5, There are 745 urls in different html files as this way:
{% url url_name %}
If I'm not wrong, this was deprecated and can't be used ...
Francesco asked 27/11, 2012 at 18:29
1
Using the new Configurable user model from Django 1.5 (1, 5, 0, 'beta', 2) I get this error while running manage.py createsuperuser trying to set a foreign key of a required field:
AttributeErro...
Devotee asked 17/12, 2012 at 14:21
2
I have many applications with historic south initial migrations, which i wanted to convert to django 1.5 applicable. So i swapped out all orm['auth.User'] references in migration files with custom ...
Extravasate asked 1/2, 2013 at 11:50
1
Solved
This is my admin.py:
class TransactionInfoAdmin(admin.ModelAdmin):
search_fields=['transactionId','subscriptionInfo__customerNumber']
save_on_top = False
def has_add_permission(self,request):...
Slugabed asked 1/8, 2013 at 12:41
1
Solved
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 i...
Cosine asked 17/7, 2013 at 22:40
1
Solved
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 w...
Withstand asked 6/7, 2013 at 21:20
5
Solved
I've recently installed Django-1.5b1.
My system configuration:
OSX 10.8
Python 2.7.1
Virtualenv 1.7.2
When I call django-admin.py command I get the following error
(devel)ninja Django-1.5b1: d...
Drury asked 8/12, 2012 at 8:22
2
From django 1.5 onwards, https://docs.djangoproject.com/en/1.5/releases/1.5/#miscellaneous
The template tags library adminmedia, which only contained the
deprecated template tag {% admin_media...
Cupel asked 29/11, 2012 at 11:11
4
Solved
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/di...
Rompish asked 15/5, 2013 at 12:20
1
Solved
I've been developing an app that uses i18n/locale as url prefix in the root/landing page. I tried to deploy my application earlier for testing purposes with DEBUG=True and everything was working pe...
Planchet asked 15/5, 2013 at 9:19
1
Solved
I have a simple model with a Model Manager:
class CompanyReviewManager(models.Manager):
def get_votes_for_company(self, company):
try:
return CompanyReview.objects.filter(user = user).count()
...
Polyptych asked 10/5, 2013 at 15:25
© 2022 - 2024 — McMap. All rights reserved.