Re: Best distro for django

2009-07-03 Thread Lakshman Prasad
Thats strange; Can you elaborate the problem a little; I have been using Ubuntu9.04 and I couldn't be happier. I don't know how any other environment can be even more conducive to development. 2009/7/4 wei ribao > > I am using ubuntu9.04 too. I have a long-standing trouble. > > When using pdb t

Re: Using Django other-than as web framework.

2009-07-03 Thread maplye
def execute_from_command_line(): from django.core.management import setup_environ sys.path.append(projectpath) try: import settings except ImportError: print "You don't appear to have a settings file in this directory!" print "Please run this from inside a

Re: Best distro for django

2009-07-03 Thread wei ribao
I am using ubuntu9.04 too. I have a long-standing trouble. When using pdb to debug, set pdb.set_trace() to bring up the interactive shell, i cannot use arrow keys. It is all ok in windows. And I can find anything from google. How do you guys slove that? On Fri, Jul 03, 2009 at 03:56:14PM -

Re: ChoiceField, TypedChoiceField, ModelChoiceField and empty_label

2009-07-03 Thread maplye
I also agree that 2009/7/3 ristretto.rb : > > Hello, > > I have stepped through code, and cruised the django docs, forums, and > internet in general looking for how to setup an empty label with > TypedChoiceField (or ChoiceField.)  I suspected it would be done > similar to the way it is done with

Re: Best distro for django

2009-07-03 Thread Kenneth Gonsalves
On Saturday 04 July 2009 01:31:57 Mike Ramirez wrote: > > I'm on ubuntu now, its going ok. I'm having keyboard issues, and > > wondering if I should put the time in on fixing it, or just ditch it > > for say, pc-bsd, if thats what the cool django kids are using. > > In my experience, the simple tr

Re: Django doesn't recognize the sequences/triggers in existing Oracle DB

2009-07-03 Thread Wanpeng
Thanks Ian! I'll try the new version first. Wanpeng On Fri, Jul 3, 2009 at 5:33 PM, Ian Kelly wrote: > > On Jul 3, 6:13 am, Wanpeng wrote: > > Hello, > > I am writing my first app in Django. I already have existing > > tables/sequences/triggers in Oracle. so I used "inspectdb" to generate > t

Re: Best distro for django

2009-07-03 Thread Juan Hernandez
It doesn't matter. All you have to consider is what kind of modules are you going to be working most of the time and evaluate how easy or hard it is to compile them or install them in that OS. I personally choose any debian based distro because apt-get/aptitude package manager is very powerfull. I

Re: apply default_if_none filter type behavior in admin fields?

2009-07-03 Thread Some Guy
Of course it should be default_if_none template tag, but it mangled my link On Jul 3, 3:43 pm, Some Guy wrote: > Hi, > I wonder if anyone has ideas about the best way to do this. > > My field shows up as (None) in the change_list view on admin.  I would > love to have a behavior similar to defau

apply default_if_none filter type behavior in admin fields?

2009-07-03 Thread Some Guy
Hi, I wonder if anyone has ideas about the best way to do this. My field shows up as (None) in the change_list view on admin. I would love to have a behavior similar to default_if_none template tag. My Ideas 1. making a new template just for this seems difficult. 2.I cou

Re: Best distro for django

2009-07-03 Thread Evandro Viana
Heavy linux user but are moving to OSX , especially the webdev's On Fri, Jul 3, 2009 at 7:31 PM, Dhruv Adhia wrote: > I ve been PC user for almost a decade, getting enough frustration , I > shifted to mac osx and I am happy with it. Much less configuration required. > I ve just installed Linux

Re: Best distro for django

2009-07-03 Thread Sam Walters
It should not matter. Any modern Linux Distro which supports the dependencies will be no different. The only conceivable way this question makes sense is if you want to make install or deployment easy. In which case use something thats based on a debian, fedora type distro where there is heaps of

Re: Best distro for django

2009-07-03 Thread Dhruv Adhia
I ve been PC user for almost a decade, getting enough frustration , I shifted to mac osx and I am happy with it. Much less configuration required. I ve just installed Linux Ubuntu yesterday. Lets see how it goes with Linux. Cheers, On Fri, Jul 3, 2009 at 2:41 PM, Evandro Viana wrote: > Debian

Re: Best distro for django

2009-07-03 Thread Evandro Viana
Debian or Slackware more the best for developer is OSX On Fri, Jul 3, 2009 at 6:28 PM, Tim Chase wrote: > > > Looking for opinion of the best distro for a developer machine for > > django. > > > > I'm on ubuntu now, its going ok. I'm having keyboard issues, and > > wondering if I should put th

Re: Django doesn't recognize the sequences/triggers in existing Oracle DB

2009-07-03 Thread Ian Kelly
On Jul 3, 6:13 am, Wanpeng wrote: > Hello, > I am writing my first app in Django. I already have existing > tables/sequences/triggers in Oracle. so I used "inspectdb" to generate the > models for django. Here's one model for example: > > class Instructors(models.Model): > > > > >     instructorid

Re: Best distro for django

2009-07-03 Thread Tim Chase
> Looking for opinion of the best distro for a developer machine for > django. > > I'm on ubuntu now, its going ok. I'm having keyboard issues, and > wondering if I should put the time in on fixing it, or just ditch it > for say, pc-bsd, if thats what the cool django kids are using. I've done Dj

Flatpages-like application and caching

2009-07-03 Thread Ryan K
Greetings, I am designing an application that is very simple like flatpages but I need the ability to associate a menu with the content which will be done through the URL (i.e. example.com/products/widget2009 would invoke the products menu and the widget2009 static page). I expect these pages to

Re: Best distro for django

2009-07-03 Thread Ovnicraft
2009/7/3 developingchris > > Looking for opinion of the best distro for a developer machine for > django. > > I'm on ubuntu now, its going ok. I'm having keyboard issues, and > wondering if I should put the time in on fixing it, or just ditch it > for say, pc-bsd, if thats what the cool django ki

Re: Best distro for django

2009-07-03 Thread Oleg Korsak
And in my experience - Gentoo will be better for developers Mike Ramirez пишет: > On Friday 03 July 2009 11:36:04 am developingchris wrote: >> Looking for opinion of the best distro for a developer machine for >> django. >> >> I'm on ubuntu now, its going ok. I'm having keyboard issues, and >> won

Re: Best distro for django

2009-07-03 Thread Mike Ramirez
On Friday 03 July 2009 11:36:04 am developingchris wrote: > Looking for opinion of the best distro for a developer machine for > django. > > I'm on ubuntu now, its going ok. I'm having keyboard issues, and > wondering if I should put the time in on fixing it, or just ditch it > for say, pc-bsd, if

Re: Best distro for django

2009-07-03 Thread Vitaly Babiy
I use Ubuntu 9.04, works great on a XPS M1530 Laptop Vitaly Babiy On Fri, Jul 3, 2009 at 2:36 PM, developingchris wrote: > > Looking for opinion of the best distro for a developer machine for > django. > > I'm on ubuntu now, its going ok. I'm having keyboard issues, and > wondering if I should

Best distro for django

2009-07-03 Thread developingchris
Looking for opinion of the best distro for a developer machine for django. I'm on ubuntu now, its going ok. I'm having keyboard issues, and wondering if I should put the time in on fixing it, or just ditch it for say, pc-bsd, if thats what the cool django kids are using. --~--~-~--~~

Re: Global custom tags

2009-07-03 Thread diogobaeder
Great, koenb, now its getting even clearer to me! :-) Thanks for the light, Diogo On Jul 3, 3:10 am, koenb wrote: > On 3 jul, 04:59, diogobaeder wrote: > > > But where do I put the custom template, than? If I load it from an app > > template, I must create it under /templatetags/, and what

Re: Will future Django releases support multiple databases?

2009-07-03 Thread Emily Rodgers
2009/7/3 Alex Gaynor : > > > On Fri, Jul 3, 2009 at 12:25 PM, Emily Rodgers > wrote: >> >> >> >> On Jul 3, 3:29 pm, Emily Rodgers >> wrote: >> > On Jul 1, 3:44 pm, Alex Gaynor wrote: >> > >> > >> > >> > > On Wed, Jul 1, 2009 at 9:39 AM, Emily Rodgers < >> > >> > > emily.kate.rodg...@googlemail.

Re: Will future Django releases support multiple databases?

2009-07-03 Thread Alex Gaynor
On Fri, Jul 3, 2009 at 12:25 PM, Emily Rodgers < emily.kate.rodg...@googlemail.com> wrote: > > > > On Jul 3, 3:29 pm, Emily Rodgers > wrote: > > On Jul 1, 3:44 pm, Alex Gaynor wrote: > > > > > > > > > On Wed, Jul 1, 2009 at 9:39 AM, Emily Rodgers < > > > > > emily.kate.rodg...@googlemail.com> wr

Re: Will future Django releases support multiple databases?

2009-07-03 Thread Emily Rodgers
On Jul 3, 3:29 pm, Emily Rodgers wrote: > On Jul 1, 3:44 pm, Alex Gaynor wrote: > > > > > On Wed, Jul 1, 2009 at 9:39 AM, Emily Rodgers < > > > emily.kate.rodg...@googlemail.com> wrote: > > > > On Jul 1, 3:22 pm, Alex Gaynor wrote: > > > > On Wed, Jul 1, 2009 at 9:16 AM, Emily Rodgers < > > >

Receiving information

2009-07-03 Thread Dhruv Adhia
Hello All, I am trying to send information from iPhone to django app through json. I got "Message" json block spitting in the form as below: message json format { "Messages": [ { "id":1.2.3.n, "Message": "some message"

Re: How does admin generate HTML for adding objects?

2009-07-03 Thread TechnicalBard
Thanks! Related question: when displaying a ModelForm, how does Django iterate/enumerate how many fields the model has? On Jul 3, 1:16 am, Jonathan Buchanan wrote: > On Fri, Jul 3, 2009 at 6:06 AM, TechnicalBard wrote: > > > To clarify, the djangobook states: > > > << On the admin site’s edit

useful django resources for newbies

2009-07-03 Thread Emily Rodgers
Hi, I only recently realised that a django subreddit existed, and since then I have been learning interesting new things from it, so I thought I would share it for the benefit of those of you that don't read reddit: http://www.reddit.com/r/django/ Em --~--~-~--~~~---

Re: Efficiency of getting attribute values in templates

2009-07-03 Thread Rajesh D
On Jul 3, 9:17 am, Nikola Pavlović wrote: > Hello people, > > I'm writing my first Django application and would like to know what is > considered more efficient: getting values of models' attributes in views > or directly in templates? > > More precicely, say we have a Person model with name an

Re: Reusable Contact Form include error?

2009-07-03 Thread Rajesh D
On Jul 3, 8:57 am, 1angrycats wrote: > Great suggestion Rajesh. > > I've shifted everything into a custom context processor and > everythign's runnign well, with the view showing and emailing from any > page, however there's a final step I'm looking to resolve: returning > the HttpResponseR

Re: Trying to get static media to serve from Django in Debug on windows

2009-07-03 Thread dartdog
Correct settings, Finally!! Note use of "full" path and forward slashes Hope it helps someone else! if settings.DEBUG: urlpatterns += patterns('', (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root':'/Users/DadLaptop/Documents/E1workspace/django_yabba/ src/django_yab

Re: changes to views and forms are not reflected in browser

2009-07-03 Thread Karen Tracey
On Fri, Jul 3, 2009 at 12:27 AM, neridaj wrote: > > I'm still unable to get this working. I am on shared hosting and > cannot change mod_fastcgi to mod_wsgi so I am completely out of ideas. > If it's this much of an issue to simply render a page, I guess I > should find better hosting or use a ph

Re: how to make field in admin edit view sortable

2009-07-03 Thread Karen Tracey
On Thu, Jul 2, 2009 at 11:52 PM, Joru wrote: > > is this posible? Maybe. > > anyone have solution for this? > Searching for 'sort' on this page: http://docs.djangoproject.com/en/dev/ref/contrib/admin/ brings you to a description of the admin_order_field attribute of things in list_display

Re: Will future Django releases support multiple databases?

2009-07-03 Thread Emily Rodgers
On Jul 1, 3:44 pm, Alex Gaynor wrote: > On Wed, Jul 1, 2009 at 9:39 AM, Emily Rodgers < > > > > emily.kate.rodg...@googlemail.com> wrote: > > > On Jul 1, 3:22 pm, Alex Gaynor wrote: > > > On Wed, Jul 1, 2009 at 9:16 AM, Emily Rodgers < > > > > emily.kate.rodg...@googlemail.com> wrote: > > > >

Re: 'MediaDefiningClass' object is not iterableRequest Method

2009-07-03 Thread Karen Tracey
On Thu, Jul 2, 2009 at 3:25 PM, jayvandal wrote: > Is this what You mean?? > No. That's way too much and too hard to follow. This is the part that can be usefully cut and pasted into email: Environment: Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.1 alpha 1 SV

Efficiency of getting attribute values in templates

2009-07-03 Thread Nikola Pavlović
Hello people, I'm writing my first Django application and would like to know what is considered more efficient: getting values of models' attributes in views or directly in templates? More precicely, say we have a Person model with name and id attributes, and these need to be shown on a page.

Re: Newbie problem: AttributeError with ModelForm

2009-07-03 Thread Daniel Roseman
On Jul 3, 8:38 am, Geoff wrote: > Dear Django users, > > I am writing my first Django application (also new to Python and have > not done any web programming for many years) and am trying to produce > a screen which allows a row to be added to a table (I know this can be > done in admin but once

Re: Reusable Contact Form include error?

2009-07-03 Thread 10000angrycats
Great suggestion Rajesh. I've shifted everything into a custom context processor and everythign's runnign well, with the view showing and emailing from any page, however there's a final step I'm looking to resolve: returning the HttpResponseRedirect within the context processor fails silently. T

Re: Reusable Contact Form include error?

2009-07-03 Thread 10000angrycats
Great suggestion Rajesh. I've shifted everything into a custom context processor and everythign's runnign well, with the view showing and emailing from any page, however there's a final step I'm looking to resolve: returning the HttpResponseRedirect within the context processor fails silently. T

Re: Django-rest-interface - querying data

2009-07-03 Thread Matt
Thanks Rajesh. Taking a quick look at the book on Safari Bookshelf, I've drawn the conclusion that since filtering is an algorithmic type operation, it can legitimately be specified with query parameters. I'm struggling to align this with REST's requirement to be hypertext driven [1], unless the

Django doesn't recognize the sequences/triggers in existing Oracle DB

2009-07-03 Thread Wanpeng
Hello, I am writing my first app in Django. I already have existing tables/sequences/triggers in Oracle. so I used "inspectdb" to generate the models for django. Here's one model for example: class Instructors(models.Model): > instructorid = models.IntegerField(db_column='INSTRUCTORID', > prim

Re: django test db

2009-07-03 Thread Michael Stevens
Might work, feels a bit hacky though. Thanks, Michael 2009/7/3 Boštjan Jerko : > > > On 3.7.2009, at 11:36, Michael Stevens wrote: > >> >> Hi. >> >> Is there a nice way to use a separate db user when running tests? >> >> I don't want my main user to have to have permissions to do things >> like

Re: django test db

2009-07-03 Thread Michael Stevens
Rama - I know about TEST_DATABASE_NAME, but I want to use a different user as well. 2009/7/3 Boštjan Jerko : > > > On 3.7.2009, at 11:36, Michael Stevens wrote: > >> >> Hi. >> >> Is there a nice way to use a separate db user when running tests? >> >> I don't want my main user to have to have perm

Re: django test db

2009-07-03 Thread Boštjan Jerko
On 3.7.2009, at 11:36, Michael Stevens wrote: > > Hi. > > Is there a nice way to use a separate db user when running tests? > > I don't want my main user to have to have permissions to do things > like creating databases. > > I'm currently experimenting with doing something with a separate > set

Newbie problem: AttributeError with ModelForm

2009-07-03 Thread Geoff
Dear Django users, I am writing my first Django application (also new to Python and have not done any web programming for many years) and am trying to produce a screen which allows a row to be added to a table (I know this can be done in admin but once I have it working I will add more features).

want to make site like washington post

2009-07-03 Thread magnifico19
want to make site like washington post how to make? script or code cam u share? thanks --~--~-~--~~~---~--~~ 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@googleg

trying to understand the session logic

2009-07-03 Thread pablo
Hi, In the session module in backends/base.py _get_new_session_key creates a random string - the session_key which is sent to the user as a session_cookie. The encode function takes the session_dict pickle it and hash it with md5(pickle + secretKey) The encoded result is saved to the database.

Re: django test db

2009-07-03 Thread Rama Vadakattu
you can use the setting TEST_DATABASE_NAME http://docs.djangoproject.com/en/dev/ref/settings/#test-database-name --rama On Jul 3, 2:36 pm, Michael Stevens wrote: > Hi. > > Is there a nice way to use a separate db user when running tests? > > I don't want my main user to have to have permission

django test db

2009-07-03 Thread Michael Stevens
Hi. Is there a nice way to use a separate db user when running tests? I don't want my main user to have to have permissions to do things like creating databases. I'm currently experimenting with doing something with a separate settings.py file but it doesn't feel nice. Michael --~--~-

Re: Keep session data between user switches

2009-07-03 Thread mettwoch
That makes sense. I remember now that I came across a section in the Docs that talks about extending the User model to store more information. When using the session it's easy to store things like queryresults ... . I'll have to figure out how to do that efficiently when using the User model. Any

Foreign keys and subclasses in admin

2009-07-03 Thread bjornkri
Hi all. I'm playing around a bit with subclassing, and this is what I have: class Contact(models.Model): class Company(Contact): class Person(Contact): So Contact has all the common details, while the Company has a title and Person has a first name and a last name

Re: Invoke Django admin list filter

2009-07-03 Thread jai
Thanks for your reply. I will implement it and get back to you. Jayapal D On Jul 2, 10:54 pm, jai_python wrote: > Hi Friends. Can any one help me to implement or invoke Django > defaultadminlistfilterin our own application. > > Thanksinadvance, > Jayapal D --~--~-~--~~~

Re: How does admin generate HTML for adding objects?

2009-07-03 Thread Chhouk Voeun
I want to stop join group --~--~-~--~~~---~--~~ 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-

Re: How does admin generate HTML for adding objects?

2009-07-03 Thread Jonathan Buchanan
On Fri, Jul 3, 2009 at 6:06 AM, TechnicalBard wrote: > > To clarify, the djangobook states: > > << On the admin site’s edit forms, each field’s label is generated > from its model field name. The algorithm is simple: Django just > replaces underscores with spaces and capitalizes the first characte