django-1.8 Questions
7
Solved
I just upgraded my django from 1.7.1 to 1.8.4. I tried to run python manage.py migrate but I got this error:
django.db.utils.ProgrammingError: relation "django_content_type" does not exist
I drop...
Exurb asked 17/9, 2015 at 0:45
2
Solved
I am testing the new @admin.register decorator that is a new feature from Django 1.7.
I am currently using Django 1.8.2 and Python 3 and happened me the following situation in relation to @admin.re...
Barcellona asked 6/7, 2015 at 0:53
2
Solved
I have a class based ListView of which I would like to filter the objects by the logged in user_id since Item model has a foreign key to settings.AUTH_USER_MODEL
class ItemListView(LoginRequiredMi...
Librettist asked 20/7, 2016 at 2:17
5
Solved
I implemented authentication management using Django auth with the default admin site but then I wanted to use my own AdminSite to rewrite some behaviors:
class OptiAdmin(admin.AdminSite):
site_t...
Huss asked 16/9, 2015 at 15:7
9
I am following a Django TDD tutorial at:
http://www.marinamele.com/taskbuster-django-tutorial/taskbuster-working-environment-and-start-django-project
I get the following error when running 'all_use...
Daubigny asked 5/5, 2017 at 20:6
2
Solved
The normal way to start the Django server is to run the following command from a terminal or a bash script:
python manage.py runserver [Ip.addr]:[port]
e.g.
python manage.py runserver 0.0.0.0...
Haemal asked 17/6, 2015 at 13:42
1
Is it possible for a model with many to many relation to a polymorphic model to display stacked inline forms (depending on the type of the child model) ?
Using the example from the django-polymorp...
Exon asked 11/9, 2015 at 8:50
6
Solved
Django 1.8 will come with new advanced field types including ArrayField these rely on PostgreSQL and are implemented at a DB level.
PostgreSQL's array field implements an append method.
However I...
Beers asked 12/3, 2015 at 16:16
0
I need to connect to MSSQL database from Django 1.8 and preserve Django 1.8 (not upgrade to newer version od Django).
I installed
pip install django-mssql . ENGINE in settings.py is sqlserver_ado.
...
Clavichord asked 13/5, 2022 at 6:15
3
I have a table with one of the columns as date. It can have multiple entries for each date.
date .....
----------- -----
2015-07-20 ..
2015-07-20 ..
2015-07-23 ..
2015-07-24 ..
I would like to g...
Showy asked 28/7, 2015 at 17:0
8
Solved
Trying to create a super user for my database:
manage.py createsuperuser
Getting a sad recursive message:
Superuser creation skipped due to not running in a TTY. You can run manage.py createsup...
Woolridge asked 11/9, 2015 at 22:15
4
Solved
I upgraded recently to Django 1.8. In previous versions of Django, the following import was fine:
from django.contrib.contenttypes.management import update_all_contenttypes
But update_all_conten...
Refrigerator asked 9/4, 2015 at 22:23
3
Solved
I switched to Django 1.8.2 from 1.7 recently, but I encounter with a little bit issues, for example in one of my models I have:
class Author(models.Model):
author = models.ForeignKey(UserProfile,...
Briones asked 18/6, 2015 at 12:23
3
Solved
I have two models Article and Blog related using a foreign key. I want to select only blog name while extracting the article.
articles = Articles.objects.all().select_related('blog__name')
The q...
Lemniscus asked 20/2, 2016 at 13:57
3
I'm using Django 1.8, Mezzanine, Cartridge, and I use Postgresql as the database.
I've updated the num_in_stock directly from the database. The quantities are all correct in the database but not ...
Rubinstein asked 8/9, 2015 at 17:41
2
Solved
What's the right way to use Django's DurationField?
When I use time_passed = models.DurationField(default=0):
Migrations work
Form defaults don't work ('int' object has no attribute 'total_secon...
Sinclair asked 17/4, 2015 at 12:57
2
Solved
Django 1.8 now has some problem detection for models, which is nice. However, for one warning that it is giving me, I understand the problem, but I don't understand how the hint that it is giving m...
Forbidding asked 9/4, 2015 at 21:43
2
Solved
I'm following the code in the documentation
from django.contrib.postgres.fields import HStoreField
from django.db import models
class Dog(models.Model):
name = models.CharField(max_length=200)
...
Shumway asked 10/4, 2015 at 9:22
3
I have two related instances that should always be created together. I'd like to do this without using signals or override the model's save() method.
class Car(models.Mode):
make = models.CharFie...
Roughneck asked 29/10, 2015 at 5:46
3
Solved
I have a model with dynamic choices, and I would like to return an empty choice list if I can guarantee that the code is being run in the event of a django-admin.py migrate / makemigrations command...
Turfy asked 15/10, 2015 at 8:56
2
Solved
I know I can limit the number of decimals in a float by using the filter floatformat:2 which output a localized float and also I know the filter stringformat:"f" which outputs a dotted float like 1...
Cordi asked 11/12, 2015 at 20:0
2
Solved
I recently upgraded Django to 1.8 and set up a new development database for a fresh start. Migrations and dependencies went well, safe the usual errors you get and you end up solving. The app is wo...
Mandibular asked 13/10, 2017 at 9:12
5
This question is already asked on StackOverflow,
The asked questions date back to 2013, Its 2015 now and Django has grown up fast.
What is the situation of using mongodb with Django 1.8 as of 201...
Lefevre asked 27/8, 2015 at 17:46
1
Solved
I have a list of users and an auth group called 'group1'. These users are created through the bulk_create method in Django. Now I need to add all these users to group 'group1'.
I can achieve this w...
Bermuda asked 25/4, 2018 at 10:33
2
Solved
I'm upgrading an old project running on Django 1.8 to at least Django 1.11 for LTS. I've heard upgrading a django project multiple versions can be difficult and frustrating. I haven't done this, so...
Lxx asked 4/4, 2018 at 13:54
1 Next >
© 2022 - 2024 — McMap. All rights reserved.