django-1.8 Questions
2
Solved
This is the first time I was tying to use AWS S3 for media storages. The application is hosted in Heroku, for static files it has not been a problem so I do not want to change static files, but wan...
Liberty asked 23/1, 2017 at 13:41
1
I was having some trouble running tests for my app and I managed to solved them in this previous post.
Now executing python manage.py test does go through without raising any errors, but it gets s...
Sandusky asked 13/10, 2017 at 13:7
1
Here is my code that I use to make the datetime timezone aware. I tried to use the recommended approach from the Django docs.
tradeDay = day.trade_date + timedelta(hours=6)
td1 = pytz.timezone("E...
Latrishalatry asked 31/5, 2016 at 9:37
2
Solved
Here is my model.
Poll(models.Model):
title = models.CharField(max_length=1024)
MY_VAR = ['my_class_level_attribute'] # I want to access this
Here is my data migration:
def my_func(apps, sche...
Attic asked 19/8, 2015 at 18:25
6
Solved
I am trying to migrate from Django 1.6 to Django 1.8. I was using South for managing migrations in Django 1.6. I have successfully created new migration files by python manage.py makemigrations. wh...
Storekeeper asked 28/4, 2015 at 10:54
8
When upgrading to Django 1.8 (with zc.buildout) and running syncdb or migrate, I get this message:
django.db.utils.ProgrammingError: relation "auth_user" does not exist
One of my models contains ...
Realistic asked 17/4, 2015 at 2:46
1
I have searched about this but could not find any workable solution.
I have a website like www.example.com and subdomains a.example.com and b.example.com. When I try to post a request from a.examp...
Trim asked 8/7, 2015 at 12:27
4
Solved
Take a look at this:
$ pypy ./manage.py syncdb
/usr/lib64/pypy-2.4.0/site-packages/django/core/management/commands/syncdb.py:24: RemovedInDjango19Warning: The syncdb command will be removed in Dja...
Brake asked 16/4, 2015 at 18:49
2
Solved
I'm using django 1.8 and having trouble with it. I am trying to import tinymce in my project. When I render it caught
AttributeError: tuple' object has no attribute 'regex'
When I remove the ...
Camouflage asked 16/4, 2015 at 7:22
1
I'm implementing a cache server that uses a celery task to update the cache in background. There is only one task that I call it with different arguments (cache keys).
Since after connecting this ...
Mattock asked 4/5, 2016 at 10:1
4
Any idea why I would be getting this error when I try to migrate?
django.db.utils.ProgrammingError: relation "django_content_type"
I am using using Django 1.8 & PostgreSql
Employ asked 16/6, 2015 at 18:58
3
Solved
I am using this code to populate my database:
import os
def populate():
python_cat = add_cat('Python')
add_page(cat=python_cat,
title="Official Python Tutorial",
url="http://docs.python.org/...
Nihhi asked 11/8, 2014 at 13:37
2
Solved
I have a Django 1.8 application whose initial migration relies on django-interval-field like this:
import interval.fields
migrations.CreateModel(
name='Item',
fields=[
...
('estimated_time', ...
Whaleback asked 30/1, 2016 at 1:17
5
Solved
When I use runserver, it gives this warning message:
(1_8.W001) The standalone TEMPLATE_* settings were deprecated in
Django 1.8 and the TEMPLATES dictionary takes precedence. You must put
the...
Brocatel asked 7/9, 2015 at 20:57
3
Solved
Following tutorial on Django reusable apps things work fine. But I have some questions about the process of developing and packaging a Django app.
1 - In the tutorial, the app is developed first w...
Rema asked 9/6, 2015 at 22:11
1
Solved
I have a project currently working on Django 1.8. Since 1.9 just released, I thought I would update via pip install django==1.9. However, when running python manage.py test -v 3, I get this error:
...
Harley asked 2/12, 2015 at 10:16
2
Can Django trans tags include HTML tags? For example can I do {% trans "Hold <em><strong>Ctrl</strong></em>" %} ? Or would I have to do {% trans "Hold" %} <em><stro...
Forebode asked 28/9, 2015 at 19:10
4
Solved
I updated a Django 1.7 project to Django 1.8 and now get errors when I run the tests (that are subclasses of django.test.TestCase).
Traceback (most recent call last):
File "env\lib\site-packages\...
Mb asked 15/4, 2015 at 14:34
0
I was getting the following error upon running a certain function:
django.contrib.contenttypes.models.DoesNotExist: ContentType matching query does not exist.
Based upon ContentType matching qu...
Tonguelash asked 21/9, 2015 at 16:54
0
We've just switched to Django 1.8.4 (from 1.6, so first time using migrations), and we've noticed an issue when using the makemigrations command. The issue happens when creating a new model that co...
Xanthate asked 8/9, 2015 at 9:44
1
Solved
I'm working my way through the django tutorial for version 1.8 and I am getting an error that I am stuck on and can't seem to figure out. I thought I was following the tutorial pretty much to the T...
Orderly asked 14/8, 2015 at 16:49
1
Solved
I have a simple data migration, which creates a Group, and which looks like this :
def make_manager_group(apps, schema_editor):
Group = apps.get_model("auth", "Group")
managers_group = Group(nam...
Bruges asked 13/8, 2015 at 14:47
1
Solved
Following is my code in the signals.py file placed in the package where the auth model is defined.
@receiver(post_migrate, sender=settings.AUTH_USER_MODEL)
def define_groups(sender, **kwargs):
# ...
Delighted asked 11/8, 2015 at 21:39
1
Solved
I have created view:
def forgot_password(request):
"""
Actions when user forgot password.
:param request: object
:return: redirect to views.home() or 'loginsys/forgot.html' with form, message
"""
...
Absalom asked 1/8, 2015 at 18:41
4
I have the following models:
class City(models.Model):
...
class Census(models.Model):
city = models.ForeignKey(City)
date = models.DateTimeField()
value = models.BigIntegerField()
Now I'd ...
Bezoar asked 5/7, 2015 at 20:50
© 2022 - 2024 — McMap. All rights reserved.