Questions tagged [django-1.6]

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

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

See the release notes for more details.

208 questions
0
votes
1 answer

ManyToManyField Issue

Can someone please help me with this ManyToManyField issue MODELS.PY class Course(models.Model): course_code = models.CharField(max_length=8, unique=True) course_name = models.CharField(max_length=128, unique=True) is_active =…
Fawad
  • 139
  • 1
  • 2
  • 9
0
votes
1 answer

Edit user profiles form without using django admin

I am developing a simple LMS system where I have 3 stakeholders Administrator, Faculty Members and Students. Administrator can create, edit, delete, block and list user accounts, with my developement so far I am able to create and list all…
Fawad
  • 139
  • 1
  • 2
  • 9
0
votes
1 answer

Django 1.6 - Programmatically create groups and permissions

I am building a Django project that will have Users and Providers. Think of a Provider as a business that can have 1+ employees and 0+ customers. I am currently planning to use the same user model for both employees and customers (if this is…
0
votes
2 answers

django - current/request user is not passed in the template

I have a model (class Explore) that has a GenericForeignKey relation with other classes. In that I have a method (get_renedered_html) to render the objects in a template (explore_photo.html) so that I can call the explore objects directly in the…
Kakar
  • 5,354
  • 10
  • 55
  • 93
0
votes
1 answer

Django doesn't read from database – no error

I just set up the environment for an existing Django project, on a new Mac. I know for certain there is nothing wrong with the code itself (just cloned the repo), but for some reason, Django can't seem to retrieve data from the database. I know the…
user1781186
0
votes
1 answer

Does Django 1.6 support the IGNORABLE_404_URLS setting?

I am getting hammered by script kiddies. The IGNORABLE_404_URLS setting doesn't seem to be working. According to the docs, the IGNORABLE_404_URLS is a list of regular expressions and BrokenLinkEmailsMiddleware is required for it to work. Here is an…
teewuane
  • 5,524
  • 5
  • 37
  • 43
0
votes
1 answer

reason of exception invalid literal for int() with base 10:

When I try go to the category category1-test i have exception : invalid literal for int() with base 10: 'category1-test' i dont understand reason of this exception. MODELS class Category(models.Model): title = models.CharField(max_length=200) …
quest
  • 25
  • 1
  • 1
  • 6
0
votes
0 answers

Django 1.6 - could not locate custom cache backend

In django 1.3 we had cache configured like: CACHES = { 'default': { 'BACKEND': '.lib.caches.memcache_cache.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } } After migrating to 1.6 we're getting error:…
Nikolay Fominyh
  • 8,946
  • 8
  • 66
  • 102
0
votes
1 answer

ModelForm requires user before one can be created: is_valid() returns false

I am attempting to create a custom user for a Django app and have run in to a slight problem that is proving time consuming. I will cut to the chase: My version of Django is 1.6.2 and python 2.7.4 Here is the model class Account(models.Model): …
robbmj
  • 16,085
  • 8
  • 38
  • 63
0
votes
0 answers

Error upgrading Django

I am upgrading my Django app to from 1.3 to 1.6 and getting following error. TemplateSyntaxError at / 'firstof' is not a valid tag or filter in tag library 'future' Error during template rendering In…
sudhanshu
  • 423
  • 1
  • 9
  • 23
0
votes
1 answer

Why is django 1.6 setting "form" to "none" on the contrib.auth.views.password_reset_confirm view?

I'm using django 1.6 and django-registration 1.0. I had to patch the urls on django-registration since they haven't released their update as of Feb 19, 2014. All of the password reset url/views have worked except for password_reset_confirm. On my…
teewuane
  • 5,524
  • 5
  • 37
  • 43
0
votes
3 answers

Django: Same form multiple times in one view

I have the three models User (django.contrib.auth), Screening and User_Screening. The User_Screening is a m2m table with the extra field status. #models.py from django.db import models from django.contrib.auth.models import User class…
Marvin Dickhaus
  • 785
  • 12
  • 27
0
votes
1 answer

django 1.6 url tag error

I have problem with my app1 application : Reverse for 'app1.views.add_content' with arguments '('',)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['/add-content/(\\d+)/$'] views @login_required def add_content(request, category_id): …
quest
  • 25
  • 1
  • 1
  • 6
0
votes
1 answer

Django 1.6 Admin page CSS not working with Bluehost

I am trying to upload my Django App to Bluehost and for some reason none of the CSS is working on the admin page, I have been touring the web for hours looking for solutions but I haven't found any specifically tailored to Bluehost or Django 1.6.…
pianoisland
  • 163
  • 1
  • 1
  • 10
0
votes
0 answers

Django - Categories dropdown

I'm trying to create a form to add a new 'Service' (or edit an existing one) and show a dropdown list of categories, so the user can select which category the service belongs to. I know this must be a newbie question, but I've been investigating…
coda
  • 622
  • 1
  • 7
  • 14
1 2 3
13
14