0
votes
0answers
26 views

Tried installing PostgreSQL on OSX for Django (using Postgres App), now python manage.py runserver not working

Wish there was an error message to follow up with. I can syncdb with the new db as Postgres, but I can't use runserver. Running python manage.py runserver just returns on the command line and doesn't ...
0
votes
1answer
20 views

Django ORM delete

Ok so i have 2 models simplified Class A: name = charfield Class B: name = charfield linked = foreignkey(A) My question how I can delete A.name and B.linked but protecting B.name ...
0
votes
0answers
25 views

ImportError: No module named psycopg2.extensions

I am trying to create an app using GeoDjango and I am completely new to this. After some (failing) attempts at making SpatiaLite work, I decided to try out PostgreSQL. I am following the GeoDjango ...
0
votes
1answer
31 views

Django virtual environment, where are the logs of Postgres saved in mac?

I have a Django project running in virtual environment(in MAC OS), where can I access the postgres logs? Before asking this question,I have looked into following posts but I could not find logs in the ...
0
votes
2answers
27 views

Problems with syncdb after creating Heroku Django app

I'm setting up a Django app on Heroku using the https://devcenter.heroku.com/articles/django tutorial and I'm running into the below error running heroku run python manage.py syncdb ...
0
votes
1answer
24 views

Table alias relabeling when performing subquery

I'm trying to resolve an error that is generated when I perform a sql subquery when using the django extension djorm-ext-pgfulltext. The error that is generated is invalid reference to ...
0
votes
0answers
22 views

Django signal database change on template

I'm building a GPS Tracking System using Django, i should have a grid on my template that display real time information of cars (position,vitesse, temperature...). GPS send data to Postgres DataBase ...
0
votes
2answers
24 views

Django filter, paginate and annotate paginated results

I have object Reports and ReportSubscriber and I want to count number of subscribers of a Report. One solution is annotating. I have lots of reports so annotating all of them takes ~6 seconds, so I ...
1
vote
1answer
36 views

Django ORM — Significant database alterations / data migrations

I have a django powered website and an EC2 postgresql server. The website has a growing community and tons of user submitted content. During development the models and views have gotten extremely ...
-1
votes
1answer
35 views

Django returns a strange Internal Server Error even though DEBUG=True

I have a very strange situation guys. Django's DEBUG is equal to True, but when I run a certain specific script it returns the below error, as opposed to Django's standard debug output: Internal ...
0
votes
2answers
95 views

Django Query extremely slow

i got a problem with an Django application. Queries on the model Scope are extremly slow and after some debugging i still got no clue where the problem is. When i query the db like scope = ...
0
votes
2answers
42 views

Django datetime primary key doesn't constrain unique

So, here's my model: class MyModel(models.Model): timestamp = models.DateTimeField(primary_key=True) fielda = models.TextField() When I call syncdb, django doesn't add a constraint to ...
0
votes
1answer
35 views

Retrieving OneToOne related QuerySet in Django

Background: I'm using djorm-ext-pgfulltext extension to do full-text-search using Postgres on a title field for one of my models (Bookmark). class Bookmark(TimeStampModel): title = ...
0
votes
2answers
58 views

IndexError: tuple index out of range

I was referring to this page of django documentation to write views. Can someone explain what I did wrong ? And what could be the solution self.object_list = self.get_queryset() File ...
0
votes
1answer
33 views

DoesNotExist: object matching query does not exist

When I do "object_name.objects.get(id=1)" I'm getting error. Earlier also I was getting this error when id=1 but it gave back object when id=2. Then I deleted all the entries I made in hope that it ...

1 2 3 4 5 51
15 30 50 per page