Re: REMOVE ME

2012-07-28 Thread Russell Keith-Magee
On Sun, Jul 29, 2012 at 1:56 PM, David Lam wrote: > Try this from manage.py shell > DjangoMailListSubscription.objects.filter(email="collective...@gmail.com").delete() Andrew obviously wants to unsubscribe. All this response succeeds in doing is make the Django community seem unhelpful. Andr

Re: REMOVE ME

2012-07-28 Thread David Lam
Try this from manage.py shell >>>DjangoMailListSubscription.objects.filter(email="collective...@gmail.com").delete() On Jul 28, 2012, at 10:47 PM, Andrew Miller wrote: > > > On Sun, Jul 29, 2012 at 10:43 AM, forthfan wrote: > Hi all, > > Being lazy, I want Django to validate the stuff I rea

REMOVE ME

2012-07-28 Thread Andrew Miller
On Sun, Jul 29, 2012 at 10:43 AM, forthfan wrote: > Hi all, > > Being lazy, I want Django to validate the stuff I read from an uploaded > file as if it were being posted. Is there a nice way to do this? > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: ANN: pythonpackages.com beta

2012-07-28 Thread Marcin Tustin
" Powered by Pyramid & Redis on Heroku . " You've got a nerve! :) On Sat, Jul 28, 2012 at 7:28 PM, Alex Clark wrote: > Hi Django folks, > > > I am reaching out to various Python-related programming communities in > order to offe

Read from an uploaded file and put data in a form for automatic Django validation

2012-07-28 Thread forthfan
Hi all, Being lazy, I want Django to validate the stuff I read from an uploaded file as if it were being posted. Is there a nice way to do this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https:/

need help on set_password()..............

2012-07-28 Thread yaswanth s
hi every one, i created one external registration form.. all are working good, but when we open the admin sit it showing the password as plain text. how to convert the password into hash formate and save into database.. can any one suggest for the abovt one -- Th

ANN: pythonpackages.com beta

2012-07-28 Thread Alex Clark
Hi Django folks, I am reaching out to various Python-related programming communities in order to offer new help packaging your software. If you have ever struggled with packaging and releasing Python software (e.g. to PyPI), please check out this service: - http://pythonpackages.com The

Re: MySQL total overheat (somewhat complex database)

2012-07-28 Thread akaariai
On 28 heinä, 21:44, lubos wrote: > Hello, > > I have a quite sophisticated database with frequently interconnected tables > and on the top level table, Django produces queries like this: > > SELECT `data_schedule`.`id`, `data_schedule`.`process_id`, > `data_schedule`.`hardware_id`, `data_schedule`

Re: Is this possible using the Django ORM without raw SQL?

2012-07-28 Thread akaariai
On 28 heinä, 15:39, sbrandt wrote: > > On 28 heinä, 12:20, sbrandt wrote: > > > Hello, > > > > for the first time ever how to compile a query with the Django ORM :/ > > > > There are two Models: The second model has a foreign key to the first > > model > > > and a type, where the combination of "

Re: MySQL total overheat (somewhat complex database)

2012-07-28 Thread lubos
Yes, they were. On Saturday, July 28, 2012 9:40:42 PM UTC+2, Javier Guerra wrote: > > On Sat, Jul 28, 2012 at 1:44 PM, lubos wrote: > > MySQL, however, isn't able to process it and after few minutes it holds > all > > processor performance. > > that looks like a rather simple star scheme. ma

Re: MySQL total overheat (somewhat complex database)

2012-07-28 Thread Javier Guerra Giraldez
On Sat, Jul 28, 2012 at 1:44 PM, lubos wrote: > MySQL, however, isn't able to process it and after few minutes it holds all > processor performance. that looks like a rather simple star scheme. maybe there are missing indexes... were those tables created by Django? -- Javier -- You received

MySQL total overheat (somewhat complex database)

2012-07-28 Thread lubos
Hello, I have a quite sophisticated database with frequently interconnected tables and on the top level table, Django produces queries like this: SELECT `data_schedule`.`id`, `data_schedule`.`process_id`, `data_schedule`.`hardware_id`, `data_schedule`.`task_id`, `data_schedule`.`start`, `data_

Re: Newbie question about accesing my development Django instance from other computers in my LAN

2012-07-28 Thread Pratik Mandrekar
Yes 0.0.0.0:8000 is correct. You would need to disable firewall for that port. In Ubuntu I used the Uncomplicated Firewall utility. You can try something like http://download.cnet.com/Windows-7-Firewall-Control/3000-10435_4-10618117.html for Windows 7 On Friday, July 27, 2012 6:42:18 PM UTC+

Re: Django Userena Problem

2012-07-28 Thread Subhodip Biswas
Hi all, I kind of got over with the last problem but got stuck in step after that. The previous problem was solved by naming the model to the first one, Since that table was already created django refused to create the same table structure against different name whatsoever. However now, once past

Like and Follow Feature in Django

2012-07-28 Thread ACK-Django
hi, i m new to django so which is the best way to apply Like and Follow feature to web app. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/2iMY1BBp

Re: Features in Django1.4

2012-07-28 Thread ANIKET KADAM
thanks On Sat, Jul 28, 2012 at 7:17 PM, Karen Tracey wrote: > On Sat, Jul 28, 2012 at 9:42 AM, ACK-Django wrote: > >> hello guys, >> i m new to django1.4 and just starting out with the tutorails >> but i m bit curious about => does django has its own framework for >> 1. Messaging >> > > https://

associate file upload to model

2012-07-28 Thread Brian Hunter
I'd like to use an upload handler function but confused as to how an uploaded file gets saved to a model's FileField. Eventually I will use a formset to allow for multiple files to be uploaded. #models.py class MyModel(models.Model): file = models.FileField(upload_to='attachments', blank=Tru

Re: Features in Django1.4

2012-07-28 Thread Karen Tracey
On Sat, Jul 28, 2012 at 9:42 AM, ACK-Django wrote: > hello guys, > i m new to django1.4 and just starting out with the tutorails > but i m bit curious about => does django has its own framework for > 1. Messaging > https://docs.djangoproject.com/search/?q=messages&release=6 > 2. comments > htt

Re: form.save() fails - due to missing field?

2012-07-28 Thread Karen Tracey
On Sat, Jul 28, 2012 at 9:31 AM, Sithembewena Lloyd Dube wrote: > Hi all, > > I have a view where if request.method == 'POST', I need to call save. > Basically, it's a registration form and the entity is a user (not the base > Django user, but a custom model). An existing user refers another perso

Re: Models: Referencing A Model In Another App and Different Project

2012-07-28 Thread JJ Zolper
Okay well atleast im learning from my mistake! The reason I thought multiple projects was needed was because in each settings file I was tied to a database and i felt I need 5 databases. But it seems clear that i dont need that many projects. When you said "you should allocate webserver locatio

Re: Can i use django book

2012-07-28 Thread Tomas Neme
While the things on the djangobook are probably still compatible, they're far of being best practices nowadays, and will lead you down old and abandoned roads, more times than not. As it's been said, I'd rather stay by the official docs, they're very clear and pretty helpful, not purely technical

Features in Django1.4

2012-07-28 Thread ACK-Django
hello guys, i m new to django1.4 and just starting out with the tutorails but i m bit curious about => does django has its own framework for 1. Messaging 2. comments 3. uploads can you tell me which things are built in feature in django. Thanks in advance -- You received this message because yo

form.save() fails - due to missing field?

2012-07-28 Thread Sithembewena Lloyd Dube
Hi all, I have a view where if request.method == 'POST', I need to call save. Basically, it's a registration form and the entity is a user (not the base Django user, but a custom model). An existing user refers another person, when they click the link they come to a registration page. I have a pr

Re: Automated updating of data across staging and production environments?

2012-07-28 Thread Sithembewena Lloyd Dube
Hi all, @Kevin - nope, the test database always has other data in it. I need to fetch the subset (ie the new stuff each time) and transfer that to the live db. Thanks for all the suggestions, we are looking into Fabric. On Fri, Jul 27, 2012 at 5:00 PM, Kevin Daum wrote: > Do you need to preloa

Re: Is this possible using the Django ORM without raw SQL?

2012-07-28 Thread sbrandt
Am Samstag, 28. Juli 2012 14:04:29 UTC+2 schrieb akaariai: > > On 28 heinä, 12:20, sbrandt wrote: > > Hello, > > > > for the first time ever how to compile a query with the Django ORM :/ > > > > There are two Models: The second model has a foreign key to the first > model > > and a type,

Re: Url regex keeps django busy/crashing

2012-07-28 Thread Tim Chase
On 07/26/12 09:45, Joe wrote: > url(r'^(?P(\w+-?)*)/$', 'detail'), > > replaced with: > > url(r'^(?P[\w-]+)/$', 'detail'), Russell gave you good background on the why (including that Django was stung by the same issue). It would help if you more clearly defined what you wanted to target. Your

Re: Can i use django book

2012-07-28 Thread Rafael E. Ferrero
maybe you must to read djangoprouect.com docs... has a nice and short tutorial and a very deep documentation of almos every aspect and version of django. 2012/7/28 Russell Keith-Magee > Hi > > Django has a very strong backwards compatibility policy, so even > though the book is old, most of the

Re: Is this possible using the Django ORM without raw SQL?

2012-07-28 Thread akaariai
On 28 heinä, 12:20, sbrandt wrote: > Hello, > > for the first time ever how to compile a query with the Django ORM :/ > > There are two Models: The second model has a foreign key to the first model > and a type, where the combination of "first model and second model's type" > is unique. Let's say

Re: Can i use django book

2012-07-28 Thread Russell Keith-Magee
Hi Django has a very strong backwards compatibility policy, so even though the book is old, most of the core functionality should be the same. There will be *some* differences, though, so if you start seeing errors, looking for the relevant section in the official documentation should help point y

Re: Can i use django book

2012-07-28 Thread kenneth gonsalves
On Sat, 2012-07-28 at 03:10 -0700, ACK-Django wrote: > hi i m new to django and i have installed django1.4 > so can i use this book http://www.djangobook.com/en/2.0/ > but its little old, so people tell me its there any drawback of using > this book better to do the tutorial in the docs. -- rega

Can i use django book

2012-07-28 Thread ACK-Django
hi i m new to django and i have installed django1.4 so can i use this book http://www.djangobook.com/en/2.0/ but its little old, so people tell me its there any drawback of using this book -- You received this message because you are subscribed to the Google Groups "Django users" group. To view

Is this possible using the Django ORM without raw SQL?

2012-07-28 Thread sbrandt
Hello, for the first time ever how to compile a query with the Django ORM :/ There are two Models: The second model has a foreign key to the first model and a type, where the combination of "first model and second model's type" is unique. Let's say type 1 are dogs, type 2 are cats and every mod

Re: Need urgrnt help for this new bee...

2012-07-28 Thread kenneth gonsalves
On Fri, 2012-07-27 at 06:14 -0700, Soumen wrote: > I have just configured the Django webserver on our local server what do you mean by 'configured'? have you made your models, views and templates? -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google