django-1.5 Questions
6
Solved
I aim to create the easiest login experience possible for the users of my Django site. I imagine something like:
Login screen is presented to user
User selects to login with Facebook or Google
Us...
Tommi asked 14/10, 2013 at 5:31
6
Solved
I'm new to python. I'm using python 2.7.1 with django 1.5.1.
When I put this code:
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
in my settings.py, the terminal shows the following error:
F...
Clegg asked 20/6, 2013 at 8:49
34
Solved
Once I change the DEBUG = False, my site will generate 500 (using wsgi & manage.py runserver), and there is no error info in Apache error log and it will run normally when I change debug to Tru...
Resolute asked 28/2, 2013 at 5:27
4
Solved
i am trying to split the string in template using custom template filter. But i got an error
TemplateSyntaxError at /job/16/
'for' statements should use the format 'for x in y': for skill in form....
Bibulous asked 30/1, 2017 at 9:36
4
Solved
I am using Django '1.5c1'. I have this line in my settings.py:
AUTH_USER_MODEL = 'fileupload.galaxyuser'
Here's my Galaxyuser model:
class GalaxyUser(models.Model):
id = models.IntegerField(pr...
Selfabuse asked 6/2, 2013 at 6:41
5
Solved
I have some models with a large number of inlines. Since not all are needed for every object I declared the inline model with extra = 0 so that a small add + appeared on the inline.
However, this ...
Teratoid asked 13/3, 2013 at 9:48
4
I upgraded an app I had on Django 1.4.5 to Django 1.5 and just finished migrating over to a custom User model. When I login to my app, using my own authentication form, with my superuser credential...
Spermatogonium asked 3/3, 2013 at 1:15
6
Solved
AUTH_USER_MODEL error solved in EDIT3. Passwords still will not save on user creation via form.
I'm using Django 1.5 playing around with the new user override/extension features, and I am not able...
Jornada asked 5/2, 2013 at 3:14
8
Solved
I recently created the admin.py based in the Django Project Document:
https://docs.djangoproject.com/en/dev/topics/auth/customizing/#django.contrib.auth.models.AbstractBaseUser
But I really misse...
Paneling asked 17/3, 2013 at 2:43
6
Solved
A Django beginner here having a lot of trouble getting forms working. Yes I've worked through the tutorial and browsed the web a lot - what I have is mix of what I'm finding here and at other sites...
Margarite asked 17/8, 2013 at 0:45
3
Solved
I have a multi step form which is built using sessionwizardview of django form wizard, I have added next and previous buttons, but the problem is, if I am in a step and when I click previous, it as...
Boyle asked 29/8, 2013 at 12:53
7
If I have two forms:
class ContactForm(forms.Form):
name = forms.CharField()
message = forms.CharField(widget=forms.Textarea)
class SocialForm(forms.Form):
name = forms.CharField()
message = ...
Flyer asked 19/3, 2013 at 11:3
6
Solved
Apparently after adding my new user table to the site, django_admin_log still has a FK to auth_user table. Any way to address this? I didn't see this problem in staging or locally so something odd ...
Town asked 27/2, 2013 at 23:23
2
If I have a URL Like this:
url(r'^reset/(?P<uid>\w+)/(?P<token>\w+)/$', 'django.contrib.auth.views.password_reset_confirm', name="reset_password")
and a URL tag like this:
{% url ...
Touchdown asked 19/12, 2013 at 20:24
4
Solved
I have created a custom user model which I am successfully using within my app.
The problem is that within the Admin, on the user edit screen, I get a display of the present password hash, instead...
Ney asked 1/12, 2012 at 17:33
4
Solved
I am struggling with a requirement now, I want to add an image to choice field label and I really dont have a clue how to do it. I am using django form wizard to render the form.
Here is the image ...
Rawlinson asked 19/7, 2013 at 13:5
4
Solved
I'm using Django 1.5.1, Python 3.3.x, and can't use raw queries for this.
Is there a way to get a QuerySet grouped by weekday, for a QuerySet that uses a date __range filter? I'm trying to group r...
Hellhole asked 22/6, 2013 at 19:56
1
I have the following setup -
folders structure:
myapp
- conf
- locale
- ru
- LC_MESSAGES
- django.mo # contains "This is the title." translation
- django.po
- templates
- index.html
set...
Foehn asked 24/1, 2016 at 18:38
1
I am using Django 1.5. I have the following model:
class User(AbstractBaseUser):
#id = models.IntegerField(primary_key=True)
#identifier = models.CharField(max_length=40, unique=True, db_index=T...
Integer asked 8/3, 2013 at 9:33
2
In my CreateView class I am overriding the form_valid() function as follows:
class ActionCreateView(CreateView):
model = Action
form_class = ActionCreateForm
success_url = reverse_lazy('profile...
Bioplasm asked 17/5, 2013 at 14:25
3
Solved
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...
Revolution asked 31/7, 2013 at 9:28
2
I must be missing the obvious here.
I am using django 1.5.x and am creating unittests, based on djangos TestCase class.
I have a bunch of DBs defined in settings as i am pulling (read-only) from al...
Minnaminnaminnie asked 5/6, 2014 at 9:19
4
Solved
I want to use an email field as the username field for my custom user model.
I have the following custom User model subclassing Django's AbstractUser model:
class CustomUser(AbstractUser):
....
...
Heeley asked 24/3, 2013 at 10:9
1
Solved
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 ins...
Lucknow asked 16/9, 2014 at 0:57
5
Solved
I'd prefer not to destroy all the users on my site. But I want to take advantage of Django 1.5's custom pluggable user model. Here's my new user model:
class SiteUser(AbstractUser):
site = models...
Lipp asked 15/2, 2013 at 21:59
1 Next >
© 2022 - 2024 — McMap. All rights reserved.