Re: Model-driven Django development

2012-01-22 Thread Venkatraman S
On Sat, Jan 21, 2012 at 9:20 AM, Alec Taylor wrote: > At University I've learned various techniques for model-driven > developments, such as: > - Class diagrams (generate code) > - ERD Diagrams (generate db code [e.g. SQL]) > > Can any of these sorts of—or for that matter, any sort of—model-drive

Confused with django model Limit and Offset Implementation

2012-01-22 Thread Swaroop Shankar V
Hi, Am trying to create a custom pagination for my project, but am seriously struck with the django implementation of Limit and offset. I went through the documents, instead of making me understand how it works, i ended up more confused. So suppose I have a page limit of 3 records per page and if i

I need help with Python Tools for Visual Studio 2010 and Django

2012-01-22 Thread JJ Zolper
Hello everyone, I was able to install Django to my machine and before I was using the command prompt. Django's path is in my Windows 7 64 bit Enterprise Environment variable. Python worked fine as well too. I also installed IPython because I heard it was useful but I haven't tried that yet. Ev

Transition from VPS(WHM/CPanel) to EC2

2012-01-22 Thread brian
I'm in the process of transitioning from a VPS (WHM/CPanel) to EC2. I've found some great how to's on setting up a machine for the cloud[1] but I'm not sure the best setup to add some of the WHM/CPanel features. Here are some of the features of cpanel I use: 1. Cpanel monitors the services (i.e. a

Re: Can't make 404.html template to be used. Keep getting Apache 500 Internal Server Error instead.

2012-01-22 Thread Reinout van Rees
On 21-01-12 20:27, Chris Seberino wrote: AttributeError: 'module' object has no attribute 'handler500' On older Django versions (1.2 and earlier, iirc), you needed to import handler500 from django.conf.urls.defaults in your urls.py. That's why there's often a "star import" in urls.py files:

Re: Django Form - This field is required.What am I missing.

2012-01-22 Thread Daniel Roseman
On Sunday, 22 January 2012 10:42:53 UTC, Johan wrote: > > Hi I have a form that has a required email field. This due to the fact > that the model requires an email. However, I don't display the email > field on the form. So when the post gets back into my view the email > field is empty. I then

Re: Django Form - This field is required.What am I missing.

2012-01-22 Thread James
On Jan 22, 5:42 am, Johan wrote: > Hi I have a form that has a required email field. This due to the fact > that the model requires an email. However, I don't display the email > field on the form. So when the post gets back into my view the email > field is empty. I then thought I would do the

Re: Why can't erase this model object? "AssertionError: Question object can't be deleted because its id attribute is set to None."

2012-01-22 Thread akaariai
There is still the possibility that you really have a row where the PK is somehow null. That would need an investigation through SQL. If so, there is an error somewhere, either in your database schema, or maybe in Django itself. - Anssi On Jan 22, 4:49 am, JohnA wrote: > Is your code really tha

Re: Internationalization and localization

2012-01-22 Thread Daniel Gerzo
On 21.1.2012 22:53, Radek Valachovic wrote: but thats developer edition not released yet well you can use https://github.com/brocaar/django-i18nurls instead (which is basically the same thing which was imported into django) until 1.4 is released. you need django 1.4 and i18n_patterns:

Django Form - This field is required.What am I missing.

2012-01-22 Thread Johan
Hi I have a form that has a required email field. This due to the fact that the model requires an email. However, I don't display the email field on the form. So when the post gets back into my view the email field is empty. I then thought I would do the following just before the form.is_valid() :

Setting Network settings from Python/Django

2012-01-22 Thread Ganesh Kumar
Hi guys I'm working on a simple web interface for an embedded computer. The computer will ship with a static default ip that will then need to be updated by the install tech who may not be tech/linux savvy. Basicly I need to change the following system settings from a Django app. 1. IP Addres

Re: How can I go about this?

2012-01-22 Thread coded kid
Thanks for the reply. I don't really mean twitter clone, just want want users to post update, so their friends can comment, and reshare the post. And it will be build in django. Donald Casson wrote: > This is a very open ended question. There are many different ways in which > you could achieve

Re: How can I go about this?

2012-01-22 Thread Donald Casson
This is a very open ended question. There are many different ways in which you could achieve the same thing. Just offering a suggestion here: I would take a read through the retwis docs, although it is php and redis it should give you enough of an understanding on how to implement some of th

How can I go about this?

2012-01-22 Thread coded kid
Hey guys, please I want you to give me a brief on how I can go about making users post status update for their friends to see. Just like how its been done on twitter. Where you tweet whats happening and after tweeting its will display your status with reply, retweet and favourite button below. Hope