django admin form customization

2012-04-02 Thread anand jeyahar
Hi, Am trying to customize the django admin pages and having trouble with it. 1. I have customized the admin change form to display as inline form a child table/model fields. Now how do i get this form to display existing child rows too? I guess, i will have to customize the views.py for

Django Contrib Auth + Class Based Generic Views

2012-04-02 Thread Matheus Ashton
Hello Everybody, I'm having a problem using the django.contrib.auth app and class based generic views in Django 1.3 / 1.4: After submitting the login form, my view receives the post data and tries to authenticate the user and then redirect to a success page. Ok nothing new.. The problem is:

Re: Looking for Django IDE

2012-04-02 Thread Sagar Chalise
Geany with plugins. Lightweight and wonderful. Some extra plugins can be found here as well like zencodingand python bindings . In order to create tags you can use these helpers

Re: Django: 404 page not found

2012-04-02 Thread Homer
I think "media_root" works well since I also used pictures on my another page. Maybe there is something wrong in my urlconf... 在 2012年4月2日星期一UTC-4下午8时41分02秒,St@n写道: > > check your Media_root in settings.py. > > It could be a missing stroke. > > Best Regards, > > Stanwin Siow > > > > On Apr 3,

Re: Django: 404 page not found

2012-04-02 Thread Stanwin Siow
check your Media_root in settings.py. It could be a missing stroke. Best Regards, Stanwin Siow On Apr 3, 2012, at 8:14 AM, Homer wrote: > I met "404" page not found when I try to enter 127.0.0.1:8000/cn/bedroom . It > says on the webpage that "C:/Django/final/media/bedroom" does not

Django: 404 page not found

2012-04-02 Thread Homer
I met "404" page not found when I try to enter 127.0.0.1:8000/cn/bedroom . It says on the webpage that "C:/Django/final/media/bedroom" does not exist". Why would this happen? *urls.py:* from django.conf.urls.defaults import * from final import settings from django.contrib import admin

Re: form.Forms + POST + forms.ChoiceField

2012-04-02 Thread Barry Morrison
If you could point me to a more recent tutorial, I'm more than willing to go through it. Basically what I have now, is a list of links. I want to sort those links based on source (Reddit) then subreddit (Python). The source and subreddits are fed from my DB and I want to select them from a

Re: Questions about UnicodeDecodeError

2012-04-02 Thread Bill Freeman
Keeping things as seen is the point. If the data contains any characters outside of the ASCII range, then you can't (directly) store it (reliably) in a db set for ASCII. Unicode encompasses all the characters that you will find on the web. UTF-8 is a relatively trouble free way to store unicode

Re: form.Forms + POST + forms.ChoiceField

2012-04-02 Thread Sergiy Khohlov
Ok. I'm not definitely sure what you want to have but I'm proposing to do simple project with next functionality: 1) prepare list of the links 2) ability to click at the link and receive some additional information about link 3) button for deleting of the link 4) button for creating

AutoComplete With Django

2012-04-02 Thread furqanmlk
Hi there, Sorry for posting this question even it had been answered but i tried all my best to solve this issue, if use result list in Jquery code directly it works. Here is code, HTML: Type Something:

Re: Doubt regarding endless pagination

2012-04-02 Thread Swaroop Shankar V
Thank You, i changed show_pages.html instead of page_link.html. It worked fine. Anyway thanks for pointing out where to change. Regards, Swaroop Shankar V On Mon, Apr 2, 2012 at 5:10 PM, Blackpearl wrote: > You can edit page_link.html for displaying like: > <> > > "{{

Re: Python Developer

2012-04-02 Thread Nikhil Verma
Hi Monali I have 1.5 years of Python ,Django ,Jquery Experience. You can take a look at www.out-adventures.com and www.careprep.com to get an idea of my work. Hope to hear from you ! Thanks On Mon, Apr 2, 2012 at 11:35 PM, Flex Monali wrote: > Please let me know if any

Python Developer

2012-04-02 Thread Flex Monali
Please let me know if any one is interested in below jobs. Please ask them to contact me on 408-845-9400 Ext 109 or email mon...@flextoninc.com Please let me know your interest in below requirement. Title: Python Developer Approx Duration: 6 months+/Fulltime Terms: Contract CTH Location: San

Re: Questions about UnicodeDecodeError

2012-04-02 Thread Ali Mesdaq
I did have UTF-8 in the db before but then when I was inserting(done by a script) values in I would get errors. I really want to avoid doing conversions before I insert the data so I can maintain the data in the exact format as it was seen in. I may be forced into doing that it seems to make

Admin form customization

2012-04-02 Thread anand jeyahar
Hi, Am trying to customize the django admin pages and having trouble with it. I am trying to do two different things. 1. I have customized the admin change form to display as inline form a child table fields. Now how do i get this form to display existing child rows too? I guess, i will

Re: Looking for Django IDE

2012-04-02 Thread Italo Maia
WingIDE or PyCharm and be happy. PyDev does the trick also. On 1 abr, 15:30, Mark Phillips wrote: > What IDE do you use/recommend for developing django web sites? Or, if not > an IDE, what editor/setup is most useful? I am developing on Linux version > 3.1.0-1-amd64

SessionWizardView and dirty sessions?

2012-04-02 Thread Italo Maia
Should I clear some of the session data in the "done method" step when using django1.4 SessionWizardView? -- 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

Re: int() argument must be a string or a number, not 'Model in Form Submit

2012-04-02 Thread Daniel França
Thanks, that was an stupid mistake. On Mon, Apr 2, 2012 at 11:21 AM, Tom Evans wrote: > 2012/4/2 Daniel França > > > > Hello there, > > I'm trying to create an instance for a model after fill a form, but then > I got this error message when I

Re: int() argument must be a string or a number, not 'Model in Form Submit

2012-04-02 Thread Tom Evans
2012/4/2 Daniel França > > Hello there, > I'm trying to create an instance for a model after fill a form, but then I > got this error message when I click in submit: > > int() argument must be a string or a number, not 'Job' > > I've tried to debug this, the instance

Re: How to model postal address in django ???

2012-04-02 Thread Ariel Isaac Romero Cartaya
Thank you very much for your answer Mario. Regards, On Sun, Apr 1, 2012 at 4:02 AM, Mario Gudelj wrote: > You can use django-countries for county names and codes > -http://code.google.com/p/django-countries/ > or https://bitbucket.org/smileychris/django-countries > >

int() argument must be a string or a number, not 'Model in Form Submit

2012-04-02 Thread Daniel França
Hello there, I'm trying to create an instance for a model after fill a form, but then I got this error message when I click in submit: int() argument must be a string or a number, not 'Job' I've tried to debug this, the instance just before the save action has all its properties values as None

Re: Bulk Creating Django Models from CSV File?

2012-04-02 Thread Thomas Weholt
You might want to look at DSE as well. Currently is has some issues with Django 1.4, but I'll look into fixing those tonight. https://bitbucket.org/weholt/dse2 Regards, Thomas Weholt On Mon, Apr 2, 2012 at 7:24 AM, Victor Hooi wrote: > Hi, > > I have several large CSV

Re: form.Forms + POST + forms.ChoiceField

2012-04-02 Thread Barry Morrison
Too much code? I'd rather too much than not enough, but if it'd help, I can cut down on future posts. Thanks for the information/guidance. I'll try your suggestions and post my findings. Much appreciated! On Monday, April 2, 2012 2:18:29 AM UTC-7, skhohlov wrote: > > So much code ;-) >

Re: Looking for Django IDE

2012-04-02 Thread Andre Terra
OP, there are about a dozen threads regarding django and IDEs in the mailing list. Please search the archive before asking the same question again. Let's try not e-mail thousands of people needlessly! Sincerely, André Terra 2012/4/2 Sells, Fred > Thanks;

Re: Mapping SSL certificates to django users

2012-04-02 Thread Tom Evans
On Mon, Apr 2, 2012 at 2:03 PM, Tomas Kouba wrote: > Hello, > > how can I map a DN (or any other part of X509 certificate) to a django user? > > I have found a documentation article about django middleware using > REMOTE_USER > transferred from apache, but I am not sure if this is

Mapping SSL certificates to django users

2012-04-02 Thread Tomas Kouba
Hello, how can I map a DN (or any other part of X509 certificate) to a django user? I have found a documentation article about django middleware using REMOTE_USER transferred from apache, but I am not sure if this is the way and if yes how to - tell apache that a given part of X509 certificate

RE: Looking for Django IDE

2012-04-02 Thread Sells, Fred
Thanks; actually I can use the nightly build for an IDE plugin so your response "saves the day". I just cannot use it in software deployed in production. Thanks again, Fred. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of

Re: Doubt regarding endless pagination

2012-04-02 Thread Blackpearl
You can edit page_link.html for displaying like: <> "{{ page.label|safe }} | " -- 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, send email to

Re: where do you host your django app and how to you deploy it?!

2012-04-02 Thread Jani Tiainen
2.4.2012 13:48, fix3d kirjoitti: Where do you host your django app and how to you deploy it?! Please share personal exp. We're deploying to our own application server cluster. And we're using fabric to run actual deployment. -- Jani Tiainen -- You received this message because you are

Re: where do you host your django app and how to you deploy it?!

2012-04-02 Thread M Oklah
Has anyone tried deploying a large scale application to dotcloud or heroku? How did it work out? Thanks, Moe On Mon, Apr 2, 2012 at 2:07 PM, N.Aleksandrenko wrote: > What about google app engine? > > -- > You received this message because you are subscribed to the

Re: Looking for Django IDE

2012-04-02 Thread N.Aleksandrenko
sublime 2 + plugin for djando syntax 2012/4/2 Alexandros Karypidis : > This is a problem in PyDev, not Django. > > The fix is already committed in the PyDev repository and will be released in > PyDev 2.5.0: > http://sourceforge.net/tracker/?func=detail=3512322_id=85796=577329 >

Re: where do you host your django app and how to you deploy it?!

2012-04-02 Thread N.Aleksandrenko
What about google app engine? -- 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, send email to django-users+unsubscr...@googlegroups.com. For more

Re: where do you host your django app and how to you deploy it?!

2012-04-02 Thread N.Aleksandrenko
I see ..., Webfaction is the users favorite, they have pretty simple video tutorial about deploying. -- 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

Re: where do you host your django app and how to you deploy it?!

2012-04-02 Thread Marcin Tustin
Webfaction: service people are eager to help, but I had to re-install and configure everything myself. They are (as far as I can tell) the cheapest reputable option with EEA datacenters. On Mon, Apr 2, 2012 at 11:53, Sandro Dutra wrote: > Webfaction, > > Excelente support,

Re: where do you host your django app and how to you deploy it?!

2012-04-02 Thread Sandro Dutra
Webfaction, Excelente support, service it's up to date, well documented and good price. deployment made with WSGI. 2012/4/2 fix3d > Where do you host your django app and how to you deploy it?! > > Please share personal exp. > > -- > You received this message because

where do you host your django app and how to you deploy it?!

2012-04-02 Thread fix3d
Where do you host your django app and how to you deploy it?! Please share personal exp. -- 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, send

Django 1.4 and google app engine

2012-04-02 Thread fix3d
Is it possible to run Django 1.4 on google app engine? And if yes, how??? -- 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, send email to

Re: modifying generated create table scripts and ise sync db?

2012-04-02 Thread KasunLak
Hello Bhargav, Thanks for the reply. It helps me I concluded that there is no composite primary key support in Django yet. On Mar 31, 8:08 pm, Bhargav Kowshik wrote: > Hello Kasun, > > I hope the following link >

Re: django-admin change form page validation

2012-04-02 Thread Tom Evans
On Sat, Mar 31, 2012 at 4:55 AM, Nikhil Verma wrote: > Hi All > > How can i apply validation in admin on various fields when they are > dependent on each other ? > There is good advice laid out in the docs for when you need to clean and validate fields that depend on

Re: URL encoding, templates and apps: are apps not portlets?

2012-04-02 Thread Tom Evans
On Sun, Apr 1, 2012 at 9:20 PM, Alexandros Karypidis wrote: > Hi, > > My fondness of Python (while scripting things for work) grew to the point > where I decided to try web development with it. Having (apparently) nothing > better to do on a Sunday afternoon, I went through the

Re: form.Forms + POST + forms.ChoiceField

2012-04-02 Thread Sergiy Khohlov
So much code ;-) at first I'm proposing to add some code for form.is_valid block for example : if form.is_valid(): source = Sources.objects.get(name=source) allPosts = Posts.objects.filter(PostSource=source) subreddits = SubReddits.objects.all()

Re: TemplateDoesnotExist: 500.html

2012-04-02 Thread FraMazz
If you need to know what goes in the 500 template have a look at: http://www.djangobook.com/en/2.0/chapter12/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Using the backend database to secure a page on the frontend

2012-04-02 Thread Philip Mountifield
Looks like an issue with the location of the templete folder, your TEMPLATE_LOADERS setting or TEMPLATE_DIRS if you put your templates somewhere else. Regards Phil On 30/03/2012 12:09, vanderkerkoff wrote: Thanks for getting back to me Phillip. I'm using that page as a guide, and i've got a

Re: Looking for Django IDE

2012-04-02 Thread Alexandros Karypidis
This is a problem in PyDev, not Django. The fix is already committed in the PyDev repository and will be released in PyDev 2.5.0: http://sourceforge.net/tracker/?func=detail=3512322_id=85796=577329 If you can't wait until PyDev 2.5.0, the only solution is to use a nightly build. You should

Doubt regarding endless pagination

2012-04-02 Thread Swaroop Shankar V
Hi All, This question is regarding a django app called endless pagination. I want to add a '|' in between the pagination numbers so that it will look like <> I went through the documents but could not figure out how to do this. If anyone have already implemented something like this please tell me

RE: Looking for Django IDE

2012-04-02 Thread Sells, Fred
Is there a Django 1.4.1 in the works that would solve this problem? I also use Eclipse+PyDev and am planning to upgrade to Django 1.4 shortly. However my management is not going to allow using a nightly build in a production system regardless of the justification. I guess my options are to stick