Re: Apache Django 15 Second Refresh

2008-10-22 Thread Kenneth Gonsalves
On Wednesday 22 October 2008 07:25:52 pm GPSGuy wrote: > I have just started developing with Django on Apache restart apache on every code change - not difficult - just up-arrow and press enter -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ Y

Re: Django Suitability

2008-10-22 Thread Kenneth Gonsalves
On Wednesday 22 October 2008 08:26:06 pm Matthew Talbert wrote: > 2. Has anyone done an order entry system (not pinax) or accounting system > (I know of the projects on google code) or interfaced with legacy systems > with Django? also look at satchmo -- regards KG http://lawgon.livejournal.com

Re: css

2008-10-24 Thread Kenneth Gonsalves
On Friday 24 October 2008 12:16:50 pm srini wrote: >   Well, i do not know the right way to link css to my > template in django, Please help me it's urgent without that i cannot > move ahead in my project. a template is just html - so attach the css just as you would in an ordinary html file. U

Re: Django Equivalent to Rails Rumble

2008-10-25 Thread Kenneth Gonsalves
On Saturday 25 October 2008 09:15:19 pm Keyton Weissinger wrote: > Is there an equivalent to the Rails Rumble for the Django community? and what exactly is Rails Rumble? -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message

Re: web 2.0 apps with django

2008-10-28 Thread Kenneth Gonsalves
On Tuesday 28 October 2008 01:06:26 am Ravi Kondamuru wrote: > Hi,Is there any simple app/ tutorial to understand web 2.0 application > development with django?thanks, http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01 -- regards KG http://lawgon.livejournal.com --~--~

Re: SECRET_KEY

2008-11-11 Thread Kenneth Gonsalves
On Wednesday 12 November 2008 07:42:41 am Juanjo Conti wrote: > Is there any problem with changing my SECRET_KEY from a running project? what happened when you tried -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message beca

Re: POP before SMTP authentication in Django while avoiding that the server mail goes to users' spam folder

2008-11-16 Thread Kenneth Gonsalves
On Sunday 16 November 2008 06:26:18 pm Srdjan Popovic wrote: > def send_mail(subject='', text='', sender='', to=''): >     M = poplib.POP3(settings.EMAIL_HOST) >     M.user(settings.EMAIL_HOST_USER) >     M.pass_(settings.EMAIL_HOST_PASSWORD) >     headers = "From: %s\r\nTo: %s\r\nSubject: %s\r\n\

Re: Tips for reading The Django Book in light of Django 1.0

2008-11-17 Thread Kenneth Gonsalves
On Tuesday 18 November 2008 02:38:03 am Ian Fitzpatrick wrote: > Can anyone recommend areas of The Django Book to skip over, or point > out areas that are potentially irrelevant/misleading given we are now > at Django 1.0?  I am a stubborn pursuer of dead ends, so am trying to > save myself some g

Re: django site within 7 hours (a day)

2008-11-20 Thread Kenneth Gonsalves
On Thursday 20 November 2008 06:12:36 pm Masklinn wrote: > I don't think there's a problem on whether it's appropriate for the   > group, but there's already Django Pluggables (http://djangoplugables.com/ > ) as a "django applications hotspot" so the project is a bit redundant   > isn't it? but w

Re: Best IDE for Django and python?

2008-11-25 Thread Kenneth Gonsalves
On Tuesday 25 November 2008 01:57:09 pm DragonSlayre wrote: > How do you develop your django projects, and where do you go when you > need to find documentation? why do you not check the archives of this list? You are the 10,000th person to ask this same idiotic question -- regards KG http://l

Re: Develop in windows, serve in linux

2008-11-25 Thread Kenneth Gonsalves
On Tuesday 25 November 2008 11:28:10 pm TheIvIaxx wrote: > Is there a common set of tools for this type of thing? putty or develop using svn -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Sending automatic emails

2008-11-27 Thread Kenneth Gonsalves
On Friday 28 November 2008 06:46:57 am izzy wrote: > I'm just curious if its possible in django to send automatic emails > based on the data in the database? what do you mean by 'automatic emails"? Do you mean emails at some fixed time, or emails based on changes in the database? In the first ca

Re: time help (again)

2008-12-01 Thread Kenneth Gonsalves
On Tuesday 02 Dec 2008 10:22:21 am Bobby Roberts wrote: > Can anyone tell me how to do this in python.  I'm coming from an asp > background where there is a built in function to determine this. http://www.python.org/doc/2.5.2/lib/datetime-timedelta.html -- regards KG http://lawgon.livejournal.c

Re: time help (again)

2008-12-01 Thread Kenneth Gonsalves
On Tuesday 02 Dec 2008 10:31:11 am Bobby Roberts wrote: > > http://www.python.org/doc/2.5.2/lib/datetime-timedelta.html > > yeah i said I don't understand this. >>> x =datetime(2008,12,10,20) >>> y=datetime(2008,12,10,23) >>> z = y-x >>> z datetime.timedelta(0, 10800) >>> print z 3:00:00 --

Re: Why run two web-servers on the same host?

2008-12-02 Thread Kenneth Gonsalves
On Tuesday 02 Dec 2008 10:16:48 pm walterbyrd wrote: > All the python frameworks seem to do this: one web-server for > development, another for production. There may be a good reason for > this, but I don't see it. it is not compulsory to use it - I develop and deploy using apache and mod_python

Re: time help (again)

2008-12-02 Thread Kenneth Gonsalves
On Tuesday 02 Dec 2008 7:53:25 pm Praveen wrote: > second thing open your terminal write python > > >>import datetime > >>help(datetime) dir(datetime) -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Why run two web-servers on the same host?

2008-12-02 Thread Kenneth Gonsalves
On Wednesday 03 Dec 2008 8:49:31 am Kenneth Gonsalves wrote: > > All the python frameworks seem to do this: one web-server for > > development, another for production. There may be a good reason for > > this, but I don't see it. > > it is not compulsory to use it

Re: need to override validation logic

2008-12-03 Thread Kenneth Gonsalves
On Thursday 04 Dec 2008 10:59:13 am Malcolm Tredinnick wrote: > > As an example, I have a form with properties A and B.  One of A or B > > must be set.  If neither is set, a validation error should be raised. > > Can someone show me an example of overriding is_valid()?  Ideally, I > > would want t

Re: open source project management app that uses django?

2008-12-04 Thread Kenneth Gonsalves
On Thursday 04 Dec 2008 12:57:14 pm Hanny Wibisono wrote: > http://www.jutdahelpdesk.com/ I get this error: [EMAIL PROTECTED] ~]$ svn checkout http://jutda-helpdesk.googlecode.com/svn/trunk/jutda-helpdesk-read-only jutda svn: URL 'http://jutda-helpdesk.googlecode.com/svn/trunk/jutda-helpdesk-re

Re: open source project management app that uses django?

2008-12-04 Thread Kenneth Gonsalves
On Thursday 04 Dec 2008 4:22:15 pm Horst Gutmann wrote: > Grrr again linebreaks > this worked: svn checkout http://jutda-helpdesk.googlecode.com/svn/trunk/ jutda -- regards KG http://lawgon.livejournal.com --~--~-~--~~-

Re: Why run two web-servers on the same host?

2008-12-04 Thread Kenneth Gonsalves
On Thursday 04 Dec 2008 11:27:34 pm walterbyrd wrote: > > Because django runs as a long-running process, and does not rebuild > > the whole world on each and any request (which is what PHP do). > > Seems to me that would make Python run faster. I suppose that must > take more system resources. Whi

Re: Ruby on Rails vs Django

2008-12-05 Thread Kenneth Gonsalves
On Saturday 06 Dec 2008 1:01:37 am JonathanB wrote: > admin interface, on the other hand, is permanent. It may not intended > for public consumption, but it does make sanity-testing your models > (wait! That DecimalField has the wrong max_digits! Doh!) hey - this is a good point - should go in th

Re: SQL injection hardening

2008-12-17 Thread Kenneth Gonsalves
On Wednesday 17 Dec 2008 10:41:02 pm Travis Veazey wrote: > If the Django models don't do their own escaping, how can I escape user > input to prevent SQL injection attacks? python !== php -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You rec

Re: Subprocess module in Python CGI

2008-12-23 Thread Kenneth Gonsalves
On Monday 22 Dec 2008 4:21:31 pm Anurag wrote: > comd = [\ >         "tar -xf x.tar.gz", \ nothing to do with python: [law...@localhost programs]$ tar -xf x.tar.gz tar: x.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now btw, there is no need to put '\' wh

Re: I would like some feedback about address model snippet...

2008-12-24 Thread Kenneth Gonsalves
On Wednesday 24 Dec 2008 3:02:10 pm klein.steph...@gmail.com wrote: > I've write a address model snippet at : > > http://www.djangosnippets.org/snippets/1177/ > > I would like to know if you see some missing fields or mistake/ > misnamed fields ? why are you putting this in djangosnippets??? Djan

Re: Why doesn't syncdb ever modify or drop tables anymore?

2008-12-25 Thread Kenneth Gonsalves
On Thursday 25 Dec 2008 11:41:38 am Fluoborate wrote: > Used to add tables and modify tables if necessary. I don't remember if > it ever dropped tables. It was great, I would modify models.py and > syncdb and it would just work afaik it never modified tables and never will -- regards KG http://

Re: no module named _sqlite3 on Mac OS X

2008-12-25 Thread Kenneth Gonsalves
On Thursday 25 Dec 2008 6:20:18 pm Rick Dooling wrote: > and can create projects etc.  Using Holovaty and Kaplan-Moss book, that book deals with django .96 not with latest svn -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this me

Re: Do you recommend "Practical Django Projects"?

2009-01-05 Thread Kenneth Gonsalves
On Monday 05 Jan 2009 2:05:16 pm HB wrote: > I'm trying to learn Django, what to do right now? :p use the onsite tutorial -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Do you recommend "Practical Django Projects"?

2009-01-05 Thread Kenneth Gonsalves
On Monday 05 Jan 2009 2:10:34 pm David Zhou wrote: > >> and covers a lot of materials. > >> What do you think? > > > > As the author, I recommend waiting a couple months. > > Are you planning to update Practical Django Projects to 1.0? isnt that obvious from the answer? -- regards KG http://law

Re: Shouldn't blank=True imply null=True?

2009-01-05 Thread Kenneth Gonsalves
On Tuesday 06 Jan 2009 12:50:24 am Mike wrote: > If the type is not a string, and blank=True is set, shouldn't > null=True be implied? no - blank=True is enforced at django level whereas null=True is enforced at DB level and blank != null. -- regards KG http://lawgon.livejournal.com --~--~---

Re: Your IDE of choice

2009-01-06 Thread Kenneth Gonsalves
On Tuesday 06 Jan 2009 5:18:57 pm HB wrote: > What is your favorite IDE for coding Django projects? geany -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: NEED HELP

2008-07-16 Thread Kenneth Gonsalves
On 16-Jul-08, at 11:09 AM, Kadusale, Myles wrote: > 12.user_fname = models.CharField('First Name', max_length=30) >user_lname = models.CharField('Last Name', max_length=50) >user_email = models.EmailField('Email Address', blank=True) >user_gndr = models.CharField(max_

Re: Great work with newforms-admin

2008-07-20 Thread Kenneth Gonsalves
On 19-Jul-08, at 10:34 PM, Ramdas S wrote: > Can you just share the wiki page link please. I need some place to > start start with an svn co. keep running the prog till there are no errors. -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/code/ --~--~-~--~-

Re: Must Have Python resources

2008-07-21 Thread Kenneth Gonsalves
On 21-Jul-08, at 1:53 PM, Hussein B wrote: > Well, I know this question isn't related to Django but I hope it is ok > to ask. > What are your favourite Python resources? diveintopython - and the django book is outdated, better you get uby's practical django projects -- regards kg http://la

Re: Must Have Python resources

2008-07-21 Thread Kenneth Gonsalves
On 21-Jul-08, at 6:32 PM, Amirouche wrote: > On 21 juil, 14:48, cschand <[EMAIL PROTECTED]> wrote: >> The django book is based on version 0.96 and it last updated on >> December 2007. >> >> Now people are using latest SVN and Version 1.0 is at our door steps > > I know that, I'm wondering about

Re: Must Have Python resources

2008-07-21 Thread Kenneth Gonsalves
On 21-Jul-08, at 6:14 PM, Amirouche wrote: > On 21 juil, 11:11, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: >> On 21-Jul-08, at 1:53 PM, Hussein B wrote: >> >>> Well, I know this question isn't related to Django but I hope it >>> is ok >>>

Re: Django Newbie

2008-07-23 Thread Kenneth Gonsalves
On 22-Jul-08, at 12:36 PM, Sthembile Ngidi wrote: > I'm relatively new to python and I want to use django to create a > website. are you a newbie in web programming? Please tell us your previous experience in web programming so we can guide you. -- regards kg http://lawgon.livejournal.co

Re: Renaming of mailing lists to avoid user confusion

2008-08-19 Thread Kenneth Gonsalves
On 20-Aug-08, at 8:29 AM, Mike Scott wrote: > I'm pretty sure the people who use > django-users mainly do it through the web interface I seriously doubt this. Maybe I am old fashioned, but I think most serious members of mailing lists use their desktop -- regards kg http://lawgon.livejour

Re: Need suggestions on subversion structure for project

2008-09-04 Thread Kenneth Gonsalves
On 04-Sep-08, at 8:40 PM, Robert Dailey wrote: > concern with the structure I presented above is how I will configure > Apache2 to handle serving static content. Also, the fact that Django > requires an absolute path for the templates directory makes this more > of a management nightmare. anywa

Re: Django Training

2008-09-15 Thread Kenneth Gonsalves
On Monday 15 Sep 2008 7:41:39 pm Rizwan wrote: > I am looking for Django training in India. Could anyone please point > to right direction for this please? which part of India? -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this m

Re: Is this group censored, or is the archive just buggy?

2008-09-15 Thread Kenneth Gonsalves
On Tuesday 16 Sep 2008 1:40:39 am catsclaw wrote: >  If it was removed by a moderator, where are the posting guidelines? the list is not moderated - maybe you replied to sender or something -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You

Re: Dynamic images

2008-09-17 Thread Kenneth Gonsalves
On Wednesday 17 Sep 2008 5:01:45 pm TKa wrote: > Because I need input from the Django models for the image I want to > call the drawing function from the view. I guess I could save the > image file to temporary folder and then link the image tag to that > file in Response but is there any better w

Re: Basic template inheritance question

2008-09-18 Thread Kenneth Gonsalves
On Thursday 18 Sep 2008 1:20:55 pm Daniele Procida wrote: >     {% extends "base.html" %} >         {% block stylesheets %} >             <--- my styles ---> >         {% endblock %} > > But the {% block stylesheets %} in stylesheets.html isn't filling in the > block in base.html - obviously I'm m

Re: Basic template inheritance question

2008-09-18 Thread Kenneth Gonsalves
On Thursday 18 Sep 2008 3:53:48 pm Daniele Procida wrote: >   {% block stylesheets %}{% endblock %} > > in the head, and place the stylesheets in a block in a template that > extends base.html. At any rate, this is what I gathered was the way to > do this. that is the way everyone does it - so i

Re: Newbie Question: How to display only error messages when form validation fails?

2008-09-19 Thread Kenneth Gonsalves
On Friday 19 Sep 2008 7:02:06 am Karthik Krishnan wrote: > The premise is this: If the form validation fails, I want to display > all the validation error messages on the top of the page in a special > div tag that I have created. > > {% for field, message in form.errors.items()%} >   {{message}}

upgrading old sites

2008-09-23 Thread Kenneth Gonsalves
hi, I have a bunch of old sites - pre MR. Some of them do not need much work, but now a couple need a lot of new stuff. Question is: should I go through all the backward incompatible fixes to the database, or should I create a fresh db and import the old data into it? -- regards KG http://law

how to get a magnifier in an image

2008-09-28 Thread Kenneth Gonsalves
hi, when I open a jpg file directly in firefox, I get a magnifying glass cursor, which on clicking gives me a bigger more detailed image. The same file when served through the get_photo_url in a django template does not give this - how can I achieve this? -- regards KG http://lawgon.livejourna

Re: how to get a magnifier in an image

2008-09-29 Thread Kenneth Gonsalves
On Monday 29 Sep 2008 12:43:32 pm Jeff Anderson wrote: > > hi, > > when I open a jpg file directly in firefox, I get a magnifying glass > > cursor, which on clicking gives me a bigger more detailed image. The same > > file when served through the get_photo_url in a django template does not > > giv

Re: Translation of object.attribute in template

2008-09-30 Thread Kenneth Gonsalves
On Tuesday 30 September 2008 10:40:15 am Gerard Petersen wrote: > #~ msgid "quoted" > #~ msgstr "jaja" > > It's in the template like this "{% trans order.state %}" so it's not picked > up by the makemessages command. Then another option is putting the > translation in the view, and manipulate it t

Re: capture form input even after ValueError exists

2008-09-30 Thread Kenneth Gonsalves
On Wednesday 01 October 2008 01:35:55 am Merrick wrote: > All is not lost if a user enters an invalid code I still want to do > something with just the url, but I cannot get > form.cleaned_data.get('url'). Any ideas how to get the url inputted > and to clean it inside the ValueError branch of code

Re: Django Hosting Survey

2008-10-06 Thread Kenneth Gonsalves
On Monday 06 October 2008 11:00:41 pm Jeff wrote: > 1. Web Faction - for those that want to get Django up and running as > quickly and easily as possible, using their automated setup. go for 64 mb ram > > OR > > 2. Slicehost - for those that want COMPLETE control of their hosting > environment. O

Re: Enter Valid Date/Time ...

2008-10-17 Thread Kenneth Gonsalves
On Friday 17 October 2008 09:18:16 pm dbee wrote: > class TeleIntForm(ModelForm): > >     call_back = forms.DateTimeField(required=False) >     meeting_date = forms.DateTimeField(required=False) > >     class Meta: >         model = TeleInt are you sure this is the way to define a modelform - why

Re: advice in model design - principally

2009-01-15 Thread Kenneth Gonsalves
On Thursday 15 Jan 2009 5:35:56 pm _Sebastian_ wrote: > I head a search and came across > http://publib.boulder.ibm.com/infocenter/idshelp/v10/index.jsp?topic=/com.i >bm.ddi.doc/ddi27.htm basically you would need to read up on the first three normal forms, try to implement them and then break th

Re: advice in model design - principally

2009-01-15 Thread Kenneth Gonsalves
On Thursday 15 Jan 2009 6:04:13 pm _Sebastian_ wrote: > Could you elaborate on what you mean with 'then break them a bit for > speed'? well, 3 normal forms is the ideal - but we live in a real world. So after normalising the database, it is often found that repeating a field, or adding a field

Re: meet issue in Django tutorail

2009-01-16 Thread Kenneth Gonsalves
On Friday 16 Jan 2009 4:51:22 pm syo wrote: > here , my question is :  need realIy add  "mysite" before the "polls"? if 'mysite' is in your path then obviously you just need to add 'polls' -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You rec

Re: meet issue in Django tutorail

2009-01-17 Thread Kenneth Gonsalves
On Saturday 17 Jan 2009 12:00:33 pm syo wrote: > thanks for replay , then is it safe to say there is something wrong in > this tutorial? no - nothing wrong with the tutorial. These things depend on what your system path is like -- regards KG http://lawgon.livejournal.com --~--~-~--~--

Re: How do you get the time and date out of a datetimefield object?

2009-01-17 Thread Kenneth Gonsalves
On Saturday 17 Jan 2009 2:13:29 pm DragonSlayre wrote: > As I'm relatively new to python and django, I'm unsure how to get the > date and time out of a DateTimeField. > > How I usually work with this sort of thing is to 'python manage.py > shell' and then import whatever class i'm interested in an

Re: How do you get the time and date out of a datetimefield object?

2009-01-17 Thread Kenneth Gonsalves
On Saturday 17 Jan 2009 2:42:16 pm Malcolm Tredinnick wrote: > > How I usually work with this sort of thing is to 'python manage.py > > shell' and then import whatever class i'm interested in and then do a > > dir() on the object to find out what methods and fields it has. > > dir() is typically l

Re: How do you get the time and date out of a datetimefield object?

2009-01-17 Thread Kenneth Gonsalves
On Saturday 17 Jan 2009 2:57:21 pm Malcolm Tredinnick wrote: > > what you need to do is to use dir() to find out the method names and help > > on the method you want to get more info > > Do I? sorry - I did not mean *you* - I was addressing the OP and trying to supplement what you were saying. I

Re: How do you get the time and date out of a datetimefield object?

2009-01-17 Thread Kenneth Gonsalves
On Saturday 17 Jan 2009 3:33:58 pm Kenneth Gonsalves wrote: > On Saturday 17 Jan 2009 2:57:21 pm Malcolm Tredinnick wrote: > > > what you need to do is to use dir() to find out the method names and > > > help on the method you want to get more info > > > > Do I

Re: NameError: global name ‘datetime’ is not defined

2009-01-19 Thread Kenneth Gonsalves
On Monday 19 Jan 2009 3:01:29 pm jazz wrote: > p.was_published_today() Traceback (most recent call last): > File "", line 1, in File "c:\projects\mysite..\mysite\polls > \models.py", line 11, in was_published_today return self.pub_date.date > () == datetime.date.today() NameError: global name 'dat

Re: Can someone please recommend a book I should get?

2009-01-20 Thread Kenneth Gonsalves
On Wednesday 21 Jan 2009 12:56:53 pm elithrar wrote: > And there's also the Google Group if you get stuck and IRC channel -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Recommendation on understanding CSS

2009-01-21 Thread Kenneth Gonsalves
On Wednesday 21 Jan 2009 2:22:54 pm Gath wrote: > Its seems the best way to do templates in Django is via plain html and > css, but am having a problem in understanding css easily, can someone > recommend some nice material/site on css i can read, i mean step by > step till complex stuff. try the

Re: Recommendation on understanding CSS

2009-01-21 Thread Kenneth Gonsalves
On Wednesday 21 Jan 2009 3:24:22 pm bruno desthuilliers wrote: > The references are on the w3c site - but they are, well, references. A > good starting point for actually learning how to use css is A List > Apart: > > http://alistapart.com/ that is not a starting point - that is nirvana -- rega

why not load the index first?

2009-01-22 Thread Kenneth Gonsalves
hi, wrt django documentation, why not load the index first - on the left? Also it would be helpful if the following links are at the top of the index: Search * Latest * 1.0 * 0.96 * All Browse * Prev: django.contrib.webdesign * Next: django-admin.py and manage.py

Re: why not load the index first?

2009-01-22 Thread Kenneth Gonsalves
On Thursday 22 Jan 2009 6:48:11 pm Malcolm Tredinnick wrote: > I think you have not described whatever problem it is that you're trying > to solve particularly well. "Index" has at least three different > meanings for the documentation. I'm assuming you mean the content index > (/dev/genindex/), b

Re: why not load the index first?

2009-01-22 Thread Kenneth Gonsalves
On Thursday 22 Jan 2009 7:31:07 pm Malcolm Tredinnick wrote: > But please do understand that this isn't a > change that is necessarily universally better for everybody. It does > harm the content presentation, for example. ok - I wont raise this again - but please check out the comments on the I

Re: Multiple static media roots?

2009-01-24 Thread Kenneth Gonsalves
On Saturday 24 Jan 2009 6:59:57 pm John Baker wrote: > I need to separate static media roots into "static" (belonging to > application - css, images etc) and "dynamic" (uploaded by users with > filefields etc). > > The point is that truly "static" media doesn't change and is part of > the deployed

problem with admin in a .90 site

2009-02-02 Thread Kenneth Gonsalves
hi, I have an old site running on revision 2486 - had not touched it for years and since it wasnt broken nor needed new features, I did not upgrade it. A new model was required, so I added it, but it was not appearing in sqlall statement. The application is called 'web' and under the directory

Re: problem with admin in a .90 site

2009-02-02 Thread Kenneth Gonsalves
On Monday 02 Feb 2009 2:36:49 pm Kenneth Gonsalves wrote: > there is a directory called myapp.web.models, but that only held an > __init__.py file which was empty. In those days django required for models > in an app called web, to have a directory like > web/models/web.py and /web/

Re: problem with admin in a .90 site

2009-02-02 Thread Kenneth Gonsalves
On Monday 02 Feb 2009 3:27:33 pm Daniel Roseman wrote: > > Any clues (I know I should not expect people to help out on such old > > stuff, but if there *are* any oldtimers with long memories ...) > > -- > > regards > > KGhttp://lawgon.livejournal.com > > Was this pre-magic removal? I seem to remem

Re: #django community etiquette observations

2009-02-03 Thread Kenneth Gonsalves
On Wednesday 04 Feb 2009 1:57:46 am sierramtns wrote: > there are certainly other people acting as such in varying degrees, > and i only cite Magus- because of the twitter feed and django log > entry being available to exemplify this pattern of behavior (god help > me if ive started a flamewar.)

Re: #django community etiquette observations

2009-02-03 Thread Kenneth Gonsalves
On Wednesday 04 Feb 2009 11:31:28 am Russell Keith-Magee wrote: > > there was a long flame war about this on the developer list some time > > back. The general consensus is that Magus- is perhaps the most valuable > > person on the channel and most of us do not mind being 'insulted' as long > > as

Re: Overriding admin template: index.html

2009-02-03 Thread Kenneth Gonsalves
On Wednesday 04 Feb 2009 1:18:53 pm knight wrote: > I want to override admin template: index.html. > I have found the template but not the view that renders it. > Maybe someone know how django rendering index.html template and where > I can find the view? does this help? http://docs.djangoproject

Re: Overriding admin template: index.html

2009-02-04 Thread Kenneth Gonsalves
On Wednesday 04 Feb 2009 2:05:37 pm knight wrote: > Thanks for the fast reply. > I read this but I still cannot find the view that renders index.html. well, according to this link, you do not need the view in order to override index.html of admin. -- regards KG http://lawgon.livejournal.com -

Re: CMS apps feature comparison matrix

2009-02-06 Thread Kenneth Gonsalves
On Friday 06 Feb 2009 5:57:32 pm akaihola wrote: > Some authors of the apps already sent corrections, and further > refinement is of course welcome either by editing the page or sending > a follow-up here or to me [3]. cool - but I think it is better if you had the features as column headers and

Re: Installing Django to a newer version of python

2009-02-06 Thread Kenneth Gonsalves
On Friday 06 Feb 2009 6:43:53 pm BrianE wrote: > how can I get mod_python, which is needed by apache, to load in the > python 25 directoty and not in the 24 directory? only if etch backports has it -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~---

Re: Why Syntax Errors in URLconf are Silent?

2009-02-06 Thread Kenneth Gonsalves
On Saturday 07 Feb 2009 12:05:01 pm Guy Rutenberg wrote: > I've included a app specific URLconf in my main URLconf file. I had > some syntax errors in the included URLconf file, however instead of > throwing an exception about the syntax error, an exceptions was thrown > when I've tried to use the

Re: Why Syntax Errors in URLconf are Silent?

2009-02-07 Thread Kenneth Gonsalves
On Saturday 07 Feb 2009 2:38:46 pm Guy Rutenberg wrote: > > what type of syntax error? I put an extra comma in my urls file and the > > app promptly crashed. > > I wrote "pattenrs" instead of "patterns" and the sure did crash. But > instead of crashing and reporting a Syntax Error exception it rep

admin is not allowing users to see the main page

2009-02-25 Thread Kenneth Gonsalves
hi, I have a django site which has been working well, with an app name 'web' - recently I some changes in the database and now find that all users (including superusers) are blocked from viewing web in the main admin page. They can view and edit other pages under 'web' by typing in the url. Wh

Re: Software for making screen mockups/application flow for django projects?

2009-02-27 Thread Kenneth Gonsalves
On Friday 27 February 2009 17:57:58 MrMuffin wrote: > My main goal is to have a complete spec and visual lay out of my > project before I start coding, instead of the old step-by-step-slowly- > into-complete-mess-approach I usually use. wont work ;-) django is geared for the old step-by-step-rapi

[OT] Proposal for pycon India

2009-02-28 Thread Kenneth Gonsalves
Hi, anyone interested in the proposed pycon Indian please head for the wiki here: http://wiki.python.org/moin/ProposalForPyConIndia. Since we have a good number of django people in/from India, we hope to have a good django track also in the proposed conference -- regards kg http://lawgon.liv

[slightly OT] Web deployment certification

2009-03-08 Thread Kenneth Gonsalves
Hi, I work with a Government department with a mandate to spread FOSS/OSS in both formal and non-formal education sector. We are planning to introduce a web deployment certification. A person may be a specialist in say RDBMS or design, but if he is able to deploy his applications (especially o

Re: I can't decide on a migration framework

2009-03-09 Thread Kenneth Gonsalves
On Tuesday 10 March 2009 04:53:25 Ben Davis wrote: > are you saying that django-evolution does not support migrating between > "versions"  (ie up and down)? no > > I'm mostly trying to get an idea of what migration frameworks django > devopers use, and why they prefer it. most do not use framewo

Re: simple venue representation

2009-03-18 Thread Kenneth Gonsalves
On Wednesday 18 March 2009 14:44:16 Viktor Nagy wrote: > My basic idea could be represented with the following model: > class Venue(models.Model): >   title = models.CharField >   gurl = models.URLField # a url to include a google maps > > And then I would add a venue to every conference. Do you h

Re: Should this be its own app?

2009-06-19 Thread Kenneth Gonsalves
On Friday 19 June 2009 16:05:00 Chris Withers wrote: > > I personally would put everything in one app at the start. If things > > start to grow and you want to reuse that part in another project, or > > release it to the public (and become famous), then it makes sense to > > factor it out into a s

creating model instance with m2m from the shell

2009-06-20 Thread Kenneth Gonsalves
hi, given a model like so: Person: name = charfield hobbies = manytomany to the Hobby model and a hobby model: Hobby name = charfield to create a person instance from the command line I do: newperson = Person.objects.create(name='myname') and then to add 2 hobbies hobbies = [] hobbies.append

Re: admin access in https redirect in http

2009-06-21 Thread Kenneth Gonsalves
On Monday 22 June 2009 07:32:41 hiphoox wrote: > Could you recommend me any VPS? > I still have the option to move to another one. look at djangofriendly.com -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you a

Re: Viewing uploaded files ?

2009-06-21 Thread Kenneth Gonsalves
On Monday 22 June 2009 09:16:59 ydjango wrote: > 2) How do I dynamically get the url of the uploaded file? is it as > simple as /site_media// > where file is the uploaded Django file object. if your model has a field called uploadedfile, then the url in the template would be {{ object.uploadedfi

Re: Do something on model save only if a certain change was made

2009-06-21 Thread Kenneth Gonsalves
On Monday 22 June 2009 09:38:14 Wiiboy wrote: > I've got a site where users make articles for the newsletter.  The > content of their articles is a flatpage. > My article model is below.  My goal is to make it so that when the > model is saved, and the status is changed from pending to accepted, i

Re: Viewing uploaded files ?

2009-06-21 Thread Kenneth Gonsalves
On Monday 22 June 2009 09:54:45 zweb wrote: > I can add the field uploadedfile in model. what type is it and What > should I store in it? you have misunderstood me - I just gave that as an example. If your filefield is named 'Foo', then the url will be: {{ instance.Foo.url }}, as an example, th

Re: Django 1.0.2 foreign key display puzzle

2009-06-22 Thread Kenneth Gonsalves
On Tuesday 23 June 2009 09:14:01 adelaide_mike wrote: > form = MyModelForm(initial={'myforeignkeyfieldname': myvalue}) assuming the foreignkey value exists, then you would have to insert it's id into the field myforeignkeyfieldname_id. -- regards kg http://lawgon.livejournal.com --~--~

Re: how to run just ONE test?

2009-06-24 Thread Kenneth Gonsalves
On Wednesday 24 June 2009 14:47:05 patrickk wrote: > just to avoid any misunderstanding: > when I´m running one test with "... test > myapp.BaseTest.test_fileobject" for example, the output is "... runs 1 > test" - but before that statement there´s a lot of "create table ...", > "installing index

Re: how to run just ONE test?

2009-06-24 Thread Kenneth Gonsalves
On Wednesday 24 June 2009 15:11:57 patrickk wrote: > but the app I´m testing doesn´t require the database - the file > models.py is empty. > > the create table and installing index statements look like this: > Creating test database... > Creating table auth_permission > Creating table auth_group >

Re: Internationalization in django and search engine indexing

2009-06-24 Thread Kenneth Gonsalves
On Wednesday 24 June 2009 13:56:49 Miguel Rodriguez wrote: > You can check an example of how your urls will look once is > implemented in here: http:\\jaratech.com the '\\' did not get converted to '//' ;-) -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---

Re: Practical Django Projects or Pro Django Books

2009-06-25 Thread Kenneth Gonsalves
On Thursday 25 June 2009 03:47:54 ydjango wrote: > For some at intermediate level in Django and basic level in Python > ( learned Python thru django) which would be better book for next > reading Practical Django Projects by James Bennet or Pro Django by > Marty Alchin. both are KA must haves --

Re: Using Signals as hooks

2009-06-25 Thread Kenneth Gonsalves
On Thursday 25 June 2009 10:24:12 Wiiboy wrote: > I'm a bit of a noob at Web Devlopment (as you already know if you've > read any of my posts on here). > > I've read that using hooks in key places in a website can help ease > future development. Can/Should Django's signals be used for that > purp

Re: Writing a reusable app

2009-06-25 Thread Kenneth Gonsalves
On Thursday 25 June 2009 19:21:15 nabucosound wrote: > So how do u guys think I should target it? Minimalistic or full- > batteries included? full batteries -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---~--~~ You received this message because you ar

Re: Writing a reusable app

2009-06-25 Thread Kenneth Gonsalves
On Friday 26 June 2009 09:54:04 Joshua Partogi wrote: > I'm currently also splitting up my django apps to be reusable. What is your > main reason to have full batteries ? For some people that is already > running django, it is more ideal to go minimalistic because then it will be > easier to plug

how does one write tests for models.py?

2009-06-26 Thread Kenneth Gonsalves
hi, this is my first venture into unittests, and have reached a block. Here is the contents of my test.py: test.py-- import unittest from conference.web.models import * from django.contrib.auth.models import User class TalkTestCase(unittest.

  1   2   3   4   5   6   7   8   9   10   >