Re: Django admin and changes

2010-12-12 Thread Kenneth Gonsalves
On Mon, 2010-12-13 at 08:09 +0100, Isaac XxX wrote: > When i add or update something through django admin interface, the > rest of > the web does not notice it. I need to restart server, and then all > behaves > in the normal way (new records are displayed). this is impossible - it must be

Django admin and changes

2010-12-12 Thread Isaac XxX
Hi mates, i'm having trouble using django admin. Currently, i've finished a project, and it is the only issue i've open. When i add or update something through django admin interface, the rest of the web does not notice it. I need to restart server, and then all behaves in the normal way (new

Re: DateTimeField doesnt get future date.

2010-12-12 Thread Recep KIRMIZI
On Mon, 13 Dec 2010 14:23:06 +1100 Sam Lai wrote: > On 13 December 2010 13:45, Recep KIRMIZI wrote: > > On Mon, 13 Dec 2010 13:33:37 +1100 > > Sam Lai wrote: > > > >> Sounds odd. What is the future date you're entering? Are you

Re: django-admin.py startproject not working

2010-12-12 Thread Brad Reardon
Another tip is to add *.py to the PATHEXT variable or the like. That will allow the script to be found on the path. I'm not sure if that's the right variable name, but check it out. On Dec 12, 2010, at 10:13 PM, codegal wrote: > Thanks. Good pointer for running

Re: DateTimeField doesnt get future date.

2010-12-12 Thread Sam Lai
On 13 December 2010 13:45, Recep KIRMIZI wrote: > On Mon, 13 Dec 2010 13:33:37 +1100 > Sam Lai wrote: > >> Sounds odd. What is the future date you're entering? Are you sure your >> system has the right date format set, e.g. you're not entering a >>

Re: django-admin.py startproject not working

2010-12-12 Thread codegal
Thanks. Good pointer for running python scripts in the future - will follow as a matter of practice. As it turned out in this case, I just wasn't providing the full path. I had set up a .pth file, and had tried copying django-admin.py into the main Python directory, but it turned out that

Re: DateTimeField doesnt get future date.

2010-12-12 Thread Recep KIRMIZI
On Mon, 13 Dec 2010 13:33:37 +1100 Sam Lai wrote: > Sounds odd. What is the future date you're entering? Are you sure your > system has the right date format set, e.g. you're not entering a > MM/dd/ date when the system is expecting a dd/MM/ date or vice > versa? >

Re: DateTimeField doesnt get future date.

2010-12-12 Thread Sam Lai
Sounds odd. What is the future date you're entering? Are you sure your system has the right date format set, e.g. you're not entering a MM/dd/ date when the system is expecting a dd/MM/ date or vice versa? On 13 December 2010 08:29, Recep KIRMIZI wrote: > Hi i have a

Re: django-admin.py startproject not working

2010-12-12 Thread Brad Reardon
Vista is very picky about permissions. Try running the command prompt as an administrator. On Sun, Dec 12, 2010 at 8:06 PM, codegal wrote: > I'm trying to create my first Django project, and I must be missing > something really basic. I'm using Windows Vista, and have

django-admin.py startproject not working

2010-12-12 Thread codegal
I'm trying to create my first Django project, and I must be missing something really basic. I'm using Windows Vista, and have installed Python 2.7 and Django 1.2.3, put the location of django-admin.py into my PATH variable, and navigated via command line to the location where I want to create a

Re: __init__.py file executed twice ?

2010-12-12 Thread martvefun
On 10-12-10 11:09, Mike Dewhirst wrote: > On 10/12/2010 7:43pm, martvefun wrote: >> On 09-12-10 01:37, Mike Dewhirst wrote: >>> It seems like a good place to put it. Maybe you can test to see if the >>> threads have been started already? >>> >>> Here is a singleton which could live in your

DateTimeField doesnt get future date.

2010-12-12 Thread Recep KIRMIZI
Hi i have a model which has a datetime field like pub_date = models.DateTimeField("Etkinlik Tarihi") this model is written to organize some events in a cafe. when i m trying to create some events from the admin panel. if i choose today and now from the date widget in admin; it works. if i

Re: Django on a hosting service

2010-12-12 Thread Todd Wilson
Here is the latest communication from my hosting provider: We will schedule mod_wsgi installation at the beginning of next week. Please let us know what configuration options you would like to have. System Administrators will review the list and if it does not affect other

send_mail issue

2010-12-12 Thread Vikesh Khanna
Hi, I have never used sendmail in Ubuntu and I am not too good at networks. I was trying to implement a mail application in Django where I send a mail to the newly registered user for confirmation. I used the following settings in my settings.py file : * *EMAIL_HOST='localhost'

Re: Started now my django

2010-12-12 Thread Vikesh Khanna
Django has beautiful documentation. It is very easy to follow and learn using this documentation even if you don't have any experience with Python - http://docs.djangoproject.com/en/dev/ Also, you can refer to the Django book-

Re: Started now my django

2010-12-12 Thread Dima Moroz
Have you already follower http://docs.djangoproject.com/en/1.2/#first-steps ? On 12 December 2010 16:56, NavaTux wrote: > I am new to this world ..i hope to live plenty here;I would like to > get the materials which lead me on flow from the newbies > beginning ..can you

Started now my django

2010-12-12 Thread NavaTux
I am new to this world ..i hope to live plenty here;I would like to get the materials which lead me on flow from the newbies beginning ..can you please give me your guidance(or steps) that i should follow sequentially to remove all obstacles(learn django pretty) plz!! -- You received this

Re: Extending AdminSite for custom views

2010-12-12 Thread Marcos Moyano
Add your custom urls before the admin include urls directive: urlpatterns += patterns('', (r'^admin/myview/$', 'your_admin_view'), (r'^admin/', include(admin.site.urls)), ... and continue working as usual. Django will go through the urls in descending order matching your custom url

Closing or resetting long-running connections

2010-12-12 Thread Craig Trader
Background: I have a fairly complex distributed Django application that, for excellent reasons that I can not go into, requires that it have as low an attack surface as possible AND that it run on both Windows and Linux. One consequence of this is that instead of using any of the normal tools

Re: Django on a hosting service

2010-12-12 Thread tiemonster
Do you have access to any sort of virtualhost file? I honestly can't say I've ever tried it with an .htaccess. It would be rather inefficient because it would be read on every connection. I'm not sure, but I think that might force a reload on every connection. -Mark On Dec 11, 10:40 pm, Todd

Re: Conflict trying to save models when roles metaclass is applied.

2010-12-12 Thread juacompe
I did not have time to go over the implementation of ModelBase class yet but I tried extend my test cases and want to update the progress. I apply the Carpenter role (in the earlier post) in setUp of all test classes in 2 small projects and add the test below in each of them. ---

Re: Apache & mod_wsgi are configured correctly. Need Django to recognize my django.wsgi file.

2010-12-12 Thread Mike Dewhirst
On 12/12/2010 10:55pm, Mike Dewhirst wrote: On 12/12/2010 12:35pm, jc wrote: I ran the Django develplment server and everything runs fine. It's only when I go back to the other web server that things start to break on me. In that case check out http://blip.tv/file/3840484 for Graham

Re: Apache & mod_wsgi are configured correctly. Need Django to recognize my django.wsgi file.

2010-12-12 Thread Mike Dewhirst
On 12/12/2010 12:35pm, jc wrote: I ran the Django develplment server and everything runs fine. It's only when I go back to the other web server that things start to break on me. In that case check out http://blip.tv/file/3840484 for Graham Dumpleton's talk on precisely the problem you