Fixture extraction

2013-11-14 Thread Anton Pirker
Hello! I have a fairly large production database (about 40GB) and I want to extract a sample of it as fixtures so I can use this sample for development. The optimal solution would be that I can give a number of auth_users to a script, and it will extract all data neccessary to have a complete set

Re: Fixture extraction

2013-11-14 Thread Javier Guerra Giraldez
On Thu, Nov 14, 2013 at 3:12 AM, Anton Pirker wrote: > The optimal solution would be that I can give a number of auth_users to a > script, and it will extract all data neccessary to have a complete set of > data for the given users. > > A plus would be, if the email addresses of the users would be

Re: Tango with Django Chapter 7 (Add_page)

2013-11-14 Thread Amimo Benja
It seems not to be working. It raises an error that Invalid block tag: ''views:category_name_url'' On Wednesday, November 13, 2013 3:38:47 PM UTC+3, Sergiy Khohlov wrote: > > try to change > Add a Page > to > Add a Page > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > >

Re: Tango with Django Chapter 7 (Add_page)

2013-11-14 Thread Lee
Noob here so I may be way wrong but it looks to me like your problem is probably in link in category page when generating the link to add_page, given the url in the error is missing the category name in the URL. Have you passed category_name_url from your view function to the category template?

Re: Tango with Django Chapter 7 (Add_page)

2013-11-14 Thread Amimo Benja
Thanks Lee, it worked. The problem was I had not passed category_name_url from my view function to the category template. The moment I passed it, it worked without any problem. Thanks a lot Man. At least I can proceed. Phee...w!!! Thanks again. On Thursday, November 14, 2013 3:08:27 PM UTC+3, L

Re: Is this what you would expect from this Q query?

2013-11-14 Thread Phoebe Bright
After a long time trying to create a simple version that would replicate the error, and failing, I've tracked it through the original code. Line 1140 in django/db/models/sql/query.py in function build_filter if current_negated and (lookup_type != 'isnull' or value is False):

ImportError at /admin/

2013-11-14 Thread Swastik Acharya
I m trying to read the html pages but it shows the folowiing error:: mportError at /admin/ No module named views Request Method:GETRequest URL:http://127.0.0.1:8050/admin/Django Version: 1.4.10Exception Type:ImportErrorException Value: No module named views Exception Location:/usr/local/lib/py

Re: Tango with Django Chapter 7 (Add_page)

2013-11-14 Thread Lee
No problem at all, glad it worked out for you :-) Good luck with the rest of the tutorial Cheers On Thursday, 14 November 2013 12:16:06 UTC, Amimo Benja wrote: > > Thanks Lee, it worked. The problem was I had not passed category_name_url > from my view function to the category template. The mom

Re: ImportError at /admin/

2013-11-14 Thread Avraham Serour
somewhere you are trying to do a 'import views' and python can't find nothing with this name, try using from appname import views On Thu, Nov 14, 2013 at 12:25 PM, Swastik Acharya wrote: > I m trying to read the html pages > but it shows the folowiing error:: > mportError at /admin/ > > No modu

Django/Web Programming Pattern

2013-11-14 Thread Timothy W. Cook
Well, this isn't likely a Django specific question but since this project is built in Django, I'd like to know how best to handle this issue. I have a view that calls a function and performs a long running process. It reads and processes a file, creating potentially thousands of objects and can t

Re: Django/Web Programming Pattern

2013-11-14 Thread Jonathan Baker
This sounds like a good candidate for an async Celery task: http://docs.celeryproject.org/en/latest/index.html On Thu, Nov 14, 2013 at 7:37 AM, Timothy W. Cook wrote: > Well, this isn't likely a Django specific question but since this > project is built in Django, I'd like to know how best to h

Re: Django/Web Programming Pattern

2013-11-14 Thread Timothy W. Cook
Thanks Jonathan. Looks interesting from the FAQ. I'll give it a shot and see what happens. On Thu, Nov 14, 2013 at 12:39 PM, Jonathan Baker wrote: > This sounds like a good candidate for an async Celery task: > http://docs.celeryproject.org/en/latest/index.html > > > On Thu, Nov 14, 2013 at 7:37

Re: Django/Web Programming Pattern

2013-11-14 Thread Larry Martell
On Thu, Nov 14, 2013 at 9:37 AM, Timothy W. Cook wrote: > Well, this isn't likely a Django specific question but since this > project is built in Django, I'd like to know how best to handle this > issue. > > I have a view that calls a function and performs a long running > process. It reads and

Re: Django/Web Programming Pattern

2013-11-14 Thread Jonathan Baker
You're welcome. I just set celery+rabbitmq up on a new project, and while it can seem like a lot of steps (and potential information overload), it isn't so bad once you get a grasp on the concepts. One thing that recently bit me: once in production with running workers, if the models your task cod

Re: Django/Web Programming Pattern

2013-11-14 Thread Amirouche Boubekki
Celery might overkill they are other more simple solutions that only involve your current database and cron jobs. Regards, Amirouche 2013/11/14 Jonathan Baker > You're welcome. I just set celery+rabbitmq up on a new project, and while > it can seem like a lot of steps (and potential informat

Re: Is this what you would expect from this Q query?

2013-11-14 Thread tim
Please provide your models so I can reproduce it myself. It's quite difficult (at least for me) to help otherwise. On Thursday, November 14, 2013 7:17:43 AM UTC-5, Phoebe Bright wrote: > > After a long time trying to create a simple version that would replicate > the error, and failing, I've tra

Re: ImportError at /admin/

2013-11-14 Thread Claudio Filho
Último Zhô LoSs ihoodizincluding ds sozorsoazolWhizoOaozi i Em 14 de Nov de 2013 10:27, "Swastik Acharya" escreveu: > I m trying to read the html pages > but it shows the folowiing error:: > mportError at /admin/ > > No module named views > > Request Method:GETRequest URL:http://127.0.0.1:8050/ad

Re: Django/Web Programming Pattern

2013-11-14 Thread Claudio Filho
Óhoz Em 14 de Nov de 2013 12:37, "Timothy W. Cook" escreveu: > Well, this isn't likely a Django specific question but since this > project is built in Django, I'd like to know how best to handle this > issue. > > I have a view that calls a function and performs a long running > process. It reads

Problems running tests when magic DB driven properties are added to models

2013-11-14 Thread Tom Evans
Hi all One of our projects is a conversion of our old C++ ORM/website to django (1.4.x). Certain pages/parts of the website have been redeveloped in to django, and we've provided django models mapping to the existing tables, whilst other pages are still served from our C++ app. Some of the tables

Re: Is this what you would expect from this Q query?

2013-11-14 Thread akaariai
On Thursday, November 14, 2013 2:17:43 PM UTC+2, Phoebe Bright wrote: > > After a long time trying to create a simple version that would replicate > the error, and failing, I've tracked it through the original code. > > Line 1140 in django/db/models/sql/query.py in function build_filter > >

Re: Django Weekend Cardiff

2013-11-14 Thread Tom Christie
Thanks for that Daniele - will be looking forward to that. Will make sure to promote it at the next Brighton and London meetups, and I'd probably be interested in talking and/or giving a tutorial. What's the best forum for staying in the loop re. conf organization? Cheers, Tom On Wednesday, 1

votes/score

2013-11-14 Thread Érico Oliveira
Hy, i'm learning django. My idea is to give marks / votes for a selected job. Works but not as I would. class Job(models.Model): title= models.CharField(max_length=20) slug = models.SlugField(max_length=40, blank=True) def __unicode__(self): return self.title class Vote(mod

Re: Startproject failing on Django 1.6

2013-11-14 Thread Steve Sawyer
Ramiro - I only have a single version of Python installed (I have the luxury of being able to keep things simple). I just tried this again though, using the explicit pathing you recommend. I note that I have two copies of django-admin.py, but they're identical - one in C:\Python33\Scripts, and

Upgrading from 1.5 to 1.6 - problem with Apache

2013-11-14 Thread Robert Jonathan Šimon
When i upgraded Django from 1.5.1 to 1.6, sudenly Apache gives me this bunch of errors. So i tried manage.py runserver adn it worked fine. When i delete 1.6 and instal 1.5.5 it is all fine and all is working. [Thu Nov 14 17:34:23.601025 2013] [:error] [pid 9756:tid 1044] [client 90.178.52.2

Re: Upgrading from 1.5 to 1.6 - problem with Apache

2013-11-14 Thread tim
The error message (last line) is quite clear: ImportError: No module named 'django.conf.urls.defaults' This module has been removed in 1.6 as noted in the deprecation timeline: https://docs.djangoproject.com/en/dev/internals/deprecation/#id3 On Thursday, November 14, 2013 12:57:48 PM UTC-5, Rob

Re: Upgrading from 1.5 to 1.6 - problem with Apache

2013-11-14 Thread Robert Jonathan Šimon
yes, you are right. Sorry Dne čtvrtek, 14. listopadu 2013 19:09:41 UTC+1 tim napsal(a): > > The error message (last line) is quite clear: ImportError: No module named > 'django.conf.urls.defaults' > > This module has been removed in 1.6 as noted in the deprecation timeline: > https://docs.django

Re: Django 1.6 error at creating project

2013-11-14 Thread Vibhu Rishi
I work exactly as you have mentioned .. In a xubuntu VM :) V. On Nov 13, 2013 11:17 AM, "Ferdy Rodríguez" wrote: > Hi, > > Yes, I always work with virtual environments, and I've checked that I did > download django 1.6. However, I looks like is a problem with my Windows > OS I fired up a Vir

Re: Upgrading from 1.5 to 1.6 - problem with Apache

2013-11-14 Thread Frank Bieniek
Hi Robert django.conf.urls.defaults got deprecated in 1.5 - removed in 1.6 ... it looks your urls.pys are broken now. https://docs.djangoproject.com/en/dev/internals/deprecation/ django.conf.urls.defaults will be removed. The functions include()

Django not installed, but clearly installed ??

2013-11-14 Thread icevermin
Hello, I installed Django using pip. It seems as if it was installed just fine. However... cmd --> python --> import django I get an error ! Here is a picture: http://i.imgur.com/PgjptkI.png Can anybody help me through this? Thank you -- You received this message because you are subscribed t

Re: Django not installed, but clearly installed ??

2013-11-14 Thread Simon Charette
It looks like pip failed to install django. Look into pip.log for more details. Le jeudi 14 novembre 2013 23:28:51 UTC-5, icevermin a écrit : > > Hello, > > I installed Django using pip. It seems as if it was installed just fine. > However... > > cmd --> python --> import django I get an error !