Re: Python Web Development with Django by Wesley Chun

2012-05-22 Thread Russell Keith-Magee
On Tue, May 22, 2012 at 1:05 PM, Ali Shaikh wrote: > Hey Django.!! > > Please can anyone share Python Web Development with > Django by Wesley Chun E-Book?? Given that this book can be easily purchased at any number of online booksellers, I'm assuming that what you're asking for he

ModelForms and CreateView Help

2012-05-22 Thread wchildsuk
Hi, I'm trying to use generic class based views to edit a specific queryset but I can't see to get my code working. I've defined queryset and relevant form but when the form renders it doesn't contain the queryset and when it saves it creates a new entry instead of editing the existing one. If an

Re: ModelForms and CreateView Help

2012-05-22 Thread Xavier Ordoquy
Hi, get is a termination statement for querysets. please use filter instead. Regards, Xavier Ordoquy. Le 22 mai 2012 à 10:34, wchildsuk a écrit : > Hi, > > I'm trying to use generic class based views to edit a specific > queryset but I can't see to get my code working. I've defined queryset >

Re: ModelForms and CreateView Help

2012-05-22 Thread wchildsuk
Hi Xavier, I changed my queryset to use filter (ReminderMessage.objects.filter(id=1)) but it didn't make any difference to the form rendering correctly with the instance or saving. Regards Wes On May 22, 9:37 am, Xavier Ordoquy wrote: > Hi, > > get is a termination statement for querysets. > p

Re: ModelForms and CreateView Help

2012-05-22 Thread bruno desthuilliers
On May 22, 10:34 am, wchildsuk wrote: > Hi, > > I'm trying to use generic class based views to edit a specific > queryset but I can't see to get my code working. I've defined queryset Nope, cf Xavier's answer on this. > and relevant form but when the form renders it doesn't contain the > queryse

Re: Python Web Development with Django by Wesley Chun

2012-05-22 Thread Ali Shaikh
Dear Russell , Actually I wanted to ask free PDF file fro that book.Am sorry,I wont repeat this On May 22, 12:12 pm, Russell Keith-Magee wrote: > On Tue, May 22, 2012 at 1:05 PM, Ali Shaikh wrote: > > Hey Django.!! > > > Please can anyone share Python Web Development with > > Dj

Re: ModelForms and CreateView Help

2012-05-22 Thread wchildsuk
Excellent, that works perfectly. Thanks for you help. Wes On May 22, 9:58 am, bruno desthuilliers wrote: > On May 22, 10:34 am, wchildsuk wrote: > > > Hi, > > > I'm trying to use generic class based views to edit a specific > > queryset but I can't see to get my code working. I've defined quer

Re: Image Update with Django - Admin site

2012-05-22 Thread kenneth gonsalves
On Fri, 2012-05-18 at 02:42 -0700, nishad wrote: > 1. When i was uploaded/(browse) and saved an Article with an image > (.jpg) , for the first time it saves perfectly > as follows (smedia/images/misc/sample.jpg) > 2. For the second time i have tried to update some textual contents in > the arti

Following multiple reverse relationships

2012-05-22 Thread sk
If I have a hierarchy of models such that: class A(models.Model): name = CharField(max_length=10) class B(models.Model): name = CharField(max_length=10) a= ForeignKey(A) class C(models.Model): name = CharField(max_length=10) b= ForeignKey(B) If I have an instance of C, as re

Re: Python Web Development with Django by Wesley Chun

2012-05-22 Thread Alexey
http://rutracker.org/forum/viewtopic.php?t=3720635 On 22 май, 09:05, Ali Shaikh wrote: > Hey Django.!! > > Please can anyone share Python Web Development with > Django by Wesley Chun E-Book?? > > Thank Yooo -- You received this message because you are subscribed to the Google Gr

Getting Started-Introduction

2012-05-22 Thread vishrut mehta
Hello Django users and Developers, I am Vishrut Mehta,studing Computer Sci and Eng. BTech 2nd year.I was just getting started with contributing to Open Source Community.So wanted to start from the thing i love like developing softwares,apps,website,etc.I dont ha

Re: Getting Started-Introduction

2012-05-22 Thread kenneth gonsalves
On Tue, 2012-05-22 at 14:35 +0500, vishrut mehta wrote: > I am Vishrut Mehta,studing Computer > Sci and Eng. BTech 2nd year.I was just getting started with > contributing > to Open Source Community.So wanted to start from the thing i love like > developing softwares,apps,website,etc.I dont have an

Different urls.py file for different apps

2012-05-22 Thread siddharth56660
Hi, I am developing an ERP system which is vast and covers many modules. After developing each module i create another app for second module by " django-admin.py startapp myapp2 " This is perfectly working fine. But my urls.py is growing very fast and has crossed more than 5000 lines with lot more

Re: Different urls.py file for different apps

2012-05-22 Thread Alexandr Aibulatov
you could include urls of app into your_app/urls.py urlpatterns = patterns('', (r'your_app/', include('your_apps.urls')) (r'your_app2/', include('your_apps2.urls')) ) 2012/5/22 siddharth56660 : > Hi, > I

Re: Different urls.py file for different apps

2012-05-22 Thread Andy McKay
Use include to pull in values from other apps inside your urls.py https://docs.djangoproject.com/en/dev/topics/http/urls/#including-other-urlconfs On Tue, May 22, 2012 at 11:49 AM, siddharth56660 wrote: > Hi, > I am developing an ERP system which is vast and covers many modules. > After developi

Re: Following multiple reverse relationships

2012-05-22 Thread akaariai
On May 22, 12:51 pm, sk <6b656...@gmail.com> wrote: > If I have a hierarchy of models such that: > > class A(models.Model): >     name = CharField(max_length=10) > > class B(models.Model): >     name = CharField(max_length=10) >     a= ForeignKey(A) > > class C(models.Model): >     name = CharField

Static files management

2012-05-22 Thread Amr Abdel-wahab
I need the exact steps to have this thing working right because I tried alot and its nt working -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, s

Re: Static files management

2012-05-22 Thread Xavier Ordoquy
Hi, If you follow what the doc says, there shouldn't be any issue (https://docs.djangoproject.com/en/1.4/howto/static-files/#basic-usage) Regards, Xavier Ordoquy, Linovia. Le 22 mai 2012 à 15:31, Amr Abdel-wahab a écrit : > I need the exact steps to have this thing working right because I trie

Re: Inserting HTML5 Coordinates Into Django Form

2012-05-22 Thread Timothy Makobu
If I understood your question correctly, using jQuery, I would use GMAP3 http://gmap3.net/ to get the the lat and long, store those in hidden form fields, and submit that. http://www.electrictoolbox.com/jquery-get-set-form-values/ MaxMind also have a free IP-to-City database, so pygeoip.GeoIP().re

Re: Python Web Development with Django by Wesley Chun

2012-05-22 Thread Russell Keith-Magee
Alexey - you have been warned. "Python Web Development" by Forcier, Bissex and Chun is a copyrighted work. We *will not* condone any attempt to use official Django forums as a way to circumvent copyright. Yours, Russ Magee %-) On Tue, May 22, 2012 at 5:28 PM, Alexey wrote: > * LINK REDACTED

Re: DB joining 3 tables in django admin, while searching on the primary table

2012-05-22 Thread Derek
Please read this: https://code.djangoproject.com/wiki/UsingTheMailingList#Donts: before continuing to post these types of messages. On May 21, 3:30 pm, Aditya Sriram M wrote: > Some one there can answer!? > > > > > > On Sunday, 20 May 2012 13:12:17 UTC+5:30, Aditya Sriram M wrote: > > > Ooo.. Nic

Re: Getting Started-Introduction

2012-05-22 Thread vishrut mehta
Thank you a lo..! But i tld u im a bit new to all this...Can u please explain how to solve bugs and submit the patches,means the procedure ??I am just new to this... On Tue, May 22, 2012 at 3:54 PM, kenneth gonsalves wrote: > On Tue, 2012-05-22 at 14:35 +0500, vishrut mehta wrote: > > I a

Re: Python Web Development with Django by Wesley Chun

2012-05-22 Thread Thomas Lockhart
On 5/22/12 6:46 AM, Russell Keith-Magee wrote: ... We *will not* condone any attempt to use official Django forums as a way to circumvent copyright. Thanks Russell! - Tom -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: ordering m2m query based on through table

2012-05-22 Thread akaariai
On May 22, 7:14 am, KentH wrote: > I am trying to configure a m2m relationship to be ordered based on data in > the through table. I assumed an 'order' attribute in the through-table's > Meta class would be honored, but it's not. Bug #11850 (closed: wontfix) > relates to this problem, but with no

Re: DB joining 3 tables in django admin, while searching on the primary table

2012-05-22 Thread akaariai
On May 22, 5:10 pm, Derek wrote: > Please read > this:https://code.djangoproject.com/wiki/UsingTheMailingList#Donts: > before continuing to post these types of messages. In addition, doing a "django prefetch_related" search on Google might lead to some clues here... - Anssi -- You received t

Re: Getting Started-Introduction

2012-05-22 Thread Andre Terra
https://docs.djangoproject.com/en/dev/internals/contributing/ On Tue, May 22, 2012 at 11:17 AM, vishrut mehta wrote: > Thank you a lo..! But i tld u im a bit new to all this...Can u > please explain how to solve bugs and submit the patches,means the procedure > ??I am just new to this...

Django site updater

2012-05-22 Thread kooliah
I'm working on a new site and i have often the need to update the server to let other people see the progress. I tought to do a python script that compare the file structure/date/time of my local version with the server version and update only the changed/new files. Before starting, and accordin

Re: Django site updater

2012-05-22 Thread Aaron C. de Bruyn
Sounds like you might benefit from Fabric. Fabric lets you define a repeatable process (in Python) for deploying your website to a server. -A On Tue, May 22, 2012 at 1:17 PM, kooliah wrote: > I'm working on a new site and i have often the need to update the server to > let other people see the p

After python upgrade, User.objects.get(username= doesn't work consistently

2012-05-22 Thread Hanne Moa
I upgraded python to 2.6.8 today from an earlier 2.6, what an adventure! So much bizarre happenings so many places. Tonight's special: SomeModel.objects.get(sometextfield=sometext) always works (when there is one entry where sometextfield=sometext of course). auth.User.objects.get(username=somete

Re: After python upgrade, User.objects.get(username= doesn't work consistently

2012-05-22 Thread Kurtis Mullins
Hey, Sorry I'm a bit confused so I'm going to try to make some sense of your situation "out loud" :) 1. User.objects.get(username="some_username") works some-times 2. When it doesn't work, then you get the DoesNotExist exception, right? 3. If not, what error(s) do you see? 4. Are you sure the use

Re: Django site updater

2012-05-22 Thread Kurtis Mullins
We use a versioning system (Subversion to be precise, git or mercurial would probably be better for you). Then I commit everything to the main repository and just checkout (update after the initial checkout) on the development server. It's not too bad of a system although I still have to go onto th

Re: Django site updater

2012-05-22 Thread Tanuva
You could checkout your project from the repository onto the server - assuming you are using version control. Alternatively, you might like rsync. Marcel Am 22.05.2012 22:17, schrieb kooliah: > I'm working on a new site and i have often the need to update the server > to let other people see the

"Connection refused" with backend psycopg2

2012-05-22 Thread Tanuva
Moin, lately, I wanted to switch my database from the testing sqlite file to a more productive pgsql 8.4 server. Now I'm constantly getting a "connection refused" from the psycopg2 backend: http://dpaste.org/0Ezka/ Database configuration: http://dpaste.org/QPjD2/ (not that verbose...) Funny enoug

Re: Static files management

2012-05-22 Thread Kurtis Mullins
Can you give us some more detail on what's not working? Thanks. On Tue, May 22, 2012 at 9:34 AM, Xavier Ordoquy wrote: > Hi, > > If you follow what the doc says, there shouldn't be any issue > (https://docs.djangoproject.com/en/1.4/howto/static-files/#basic-usage) > > Regards, > Xavier Ordoquy,

Re: Time zone support enabled in Django 1.4, yet "Django does not support timezone-aware times"

2012-05-22 Thread Ramiro Morales
On Mon, May 21, 2012 at 9:57 PM, Arthur wrote: > Hello, > > I recently upgraded one of my machines to Django 1.4 to patch a bug related > to the use of PostGIS 9.1. I read the documentation on the new support for > time zones and added USE_TZ=True to my settings.py file. Nonetheless, when I > atte

Re: "Connection refused" with backend psycopg2

2012-05-22 Thread akaariai
On May 22, 11:51 pm, Tanuva wrote: > Moin, > > lately, I wanted to switch my database from the testing sqlite file to a > more productive pgsql 8.4 server. Now I'm constantly getting a > "connection refused" from the psycopg2 backend:http://dpaste.org/0Ezka/ > Database configuration:http://dpaste.

Re: After python upgrade, User.objects.get(username= doesn't work consistently

2012-05-22 Thread Hanne Moa
On 22 May 2012 22:58, Kurtis Mullins wrote: > Sorry I'm a bit confused so I'm going to try to make some sense of > your situation "out loud" :) > > 1. User.objects.get(username="some_username") works some-times Yes. > 2. When it doesn't work, then you get the DoesNotExist exception, right? Yes.

Re: After python upgrade, User.objects.get(username= doesn't work consistently

2012-05-22 Thread akaariai
On May 22, 11:49 pm, Hanne Moa wrote: > I upgraded python to 2.6.8 today from an earlier 2.6, what an > adventure! So much bizarre happenings so many places. Tonight's > special: > > SomeModel.objects.get(sometextfield=sometext) always works (when there > is one entry where sometextfield=sometext

Slideshare API

2012-05-22 Thread Amr Abdel-wahab
Anyone here ever dealt with slideshare API in a django project and know how exactly to use it -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, sen

Re: "Connection refused" with backend psycopg2

2012-05-22 Thread Tanuva
Am 22.05.2012 23:52, schrieb akaariai: > On May 22, 11:51 pm, Tanuva wrote: >> Moin, >> >> lately, I wanted to switch my database from the testing sqlite file to a >> more productive pgsql 8.4 server. Now I'm constantly getting a >> "connection refused" from the psycopg2 backend:http://dpaste.org/

Re: "Connection refused" with backend psycopg2

2012-05-22 Thread Stanwin Siow
On May 23, 2012, at 1:41 PM, Tanuva wrote: > Am 22.05.2012 23:52, schrieb akaariai: >> On May 22, 11:51 pm, Tanuva wrote: >>> Moin, >>> >>> lately, I wanted to switch my database from the testing sqlite file to a >>> more productive pgsql 8.4 server. Now I'm constantly getting a >>> "connectio

Re: "Connection refused" with backend psycopg2

2012-05-22 Thread akaariai
On May 23, 8:41 am, Tanuva wrote: > Am 22.05.2012 23:52, schrieb akaariai: > > > > > > > > > > > On May 22, 11:51 pm, Tanuva wrote: > >> Moin, > > >> lately, I wanted to switch my database from the testing sqlite file to a > >> more productive pgsql 8.4 server. Now I'm constantly getting a > >> "

Re: "Connection refused" with backend psycopg2

2012-05-22 Thread kenneth gonsalves
On Tue, 2012-05-22 at 22:51 +0200, Tanuva wrote: > lately, I wanted to switch my database from the testing sqlite file to > a > more productive pgsql 8.4 server. Now I'm constantly getting a > "connection refused" from the psycopg2 backend: > http://dpaste.org/0Ezka/ > Database configuration: http:

Is there a custom forms component of python-web?

2012-05-22 Thread kevon wang
I have these requires: 1,Customers can configure form's columns, the name and quantity of columns can been configured. 2,After customers configured form's columns, program automatic create the table of corresponding form. 3,After table created, customers can CURD the table. So I want to know wheth

JQuery Django

2012-05-22 Thread cocoza4
i'm new to Django. How can i connect jQuery with DJango? is there any tool to help me do this? please show me the sample code also thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

JQuery Django

2012-05-22 Thread cocoza4
I'm new to Django. How can i connect Django with jQuery? is there any additional tool that i need to install? could you show me a sample code also? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on

Re: JQuery Django

2012-05-22 Thread Stanwin Siow
On May 23, 2012, at 2:06 PM, cocoza4 wrote: > I'm new to Django. > How can i connect Django with jQuery? > > is there any additional tool that i need to install? > > could you show me a sample code also? > > Thanks in advance. > All you need to do is to insert the jquery code into the html pa