Re: no such table ERROR

2009-09-13 Thread Karen Tracey
On Mon, Sep 14, 2009 at 12:11 AM, AIM wrote: > > HI, > > When I browse to > http://127.0.0.1:8000/mysite/Start/ > > I get the following error: > > OperationalError at /mysite/Start/ > > no such table: wiki_page > > Request Method: GET > Request URL:

Capturing Web Page data to a File

2009-09-13 Thread Hrishikesh Dhayagude
Hi, In my application I've opened a file and displayed its contents on the web page. Then I edit the same file on the web page. I have completed till this. Now I want to store the entire new contents which are currently on the web page back to some file. In short I need to capture the entire data

no such table ERROR

2009-09-13 Thread AIM
HI, When I browse to http://127.0.0.1:8000/mysite/Start/ I get the following error: OperationalError at /mysite/Start/ no such table: wiki_page Request Method: GET Request URL:http://127.0.0.1:8000/mysite/Start/ Exception Type: OperationalError Exception Value: no such

Re: django-admin.py the system cannot execute the specified program

2009-09-13 Thread Karen Tracey
On Sun, Sep 13, 2009 at 3:09 PM, about2flip wrote: > > I am learning django, and I am having doubts if it is worth it. I am > trying to startproject and I keep getting the system cannot execute > the specified program error at my command prompt. I would type: > >

Re: Can all of unicode be slugified?

2009-09-13 Thread James Bennett
On Sun, Sep 13, 2009 at 8:25 PM, W.P. McNeill wrote: > Is this expected behavior?  I can see some discussion on the web that > references unicode support for slugification, but I can't tell if that > unicode support works for any arbitrary unicode characters, or Django > has

Re: Is slugify available as a Django API call?

2009-09-13 Thread David Zhou
On Sun, Sep 13, 2009 at 9:07 PM, W.P. McNeill wrote: > the web, but this seems error prone.  The right way to do it would > seem to be to use the slugify code that is already in Django. > What is the best way to slugify an arbitrary string using a Python > call? from

Can all of unicode be slugified?

2009-09-13 Thread W.P. McNeill
I am writing a Django application that uses characters from the International Phonetic Alphabet (IPA). I am trying to type the IPA characters into the admin interface and have Django automatically prepopulate a slug field. Django is ignoring the IPA characters. Is this expected behavior? I

Is slugify available as a Django API call?

2009-09-13 Thread W.P. McNeill
I am going to populate the tables in my Django app from .CSV files rather than through the admin interface, so I am going to need a slugify Python function. I could write my own or pull a snippet from the web, but this seems error prone. The right way to do it would seem to be to use the

Re: get current URL

2009-09-13 Thread Gonzalo Delgado
El Sun, 13 Sep 2009 17:12:41 -0700 (PDT) Shuge Lee escribió: > How to get current URL ? http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.path -- P.U. Gonzalo Delgado http://gonzalodelgado.com.ar/

Re: Newbie: How to use object related to dropdown selection in django/javascript spaguetti code?

2009-09-13 Thread Tiago Serafim
Hi, First you should have an attribute "name" on your select. It's needed to pass the value when the form is submitted. If your select's name is "foos_combo", then your code you'll look like this: def foo_relatory(request): if request.method == 'POST': foos_combo =

Newbie: How to use object related to dropdown selection in django/javascript spaguetti code?

2009-09-13 Thread Samuel Lerning
Hello, I'm a newbie struggling with a simple problem for some time now. I know it is a simple problem and it is a shame that I don't know how to solve it. I have a django spaguetti code that, instead of using forms, uses javascript functions to get a selection from a selection list (). Since I

get current URL

2009-09-13 Thread Shuge Lee
How to get current URL ? --~--~-~--~~~---~--~~ 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: Memory limits

2009-09-13 Thread Graham Dumpleton
It also depends on how OP deploys Django. Use embedding with mod_python or mod_wsgi, instead of daemon mode of mod_wsgi or fastcgi, then you can be setting yourself up for problems. Read: http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html Graham On Sep 14, 1:52 am,

Re: Deploying with Apache: confused by odd PythonPath requirement

2009-09-13 Thread Graham Dumpleton
On Sep 14, 7:31 am, Dan06 wrote: > I've 'successfully' deployed django in a development environment on > Apache2. While, I've got it to work, I'm > thoroughly confused by the PythonPath setting needed for it to work. > > I don't understand why I need to give the

Re: Django Project Management App

2009-09-13 Thread Greg Brown
Cheers for the feedback folks. Just to be clear, my app doesn't handle code repositories or bug tracking at all - it's very much a one-user system at the moment. I actually just run it on my Macbook in a terminal (applescripted on startup). It's somewhat similar to basecamp I guess, albeit much

Re: Editors of choice

2009-09-13 Thread V
After the hordes of happy Vim users around, I gave Vim another try. I've tried to set it up for Django around half an year ago, but finally gave up, and went back to heavy-lifting with Eclipse. Today, I got much further then before, so I'll post what I've found until now, and what I see as the

Re: Development and deployment wit Git

2009-09-13 Thread Sam Lai
2009/9/14 mr.tinn : > fyi http://delicious.com/tag/git+tutorial > have fun Once you have read the tutorial, I started my repo on the server, then git cloned it locally. When I finish doing any work locally, I git push it back up to the server. The reason I started it on the

Re: Running Django on Tornado's HTTP server

2009-09-13 Thread Antoni Aloy
2009/9/13 Bret Taylor : > > I am one of the authors of Tornado (http://www.tornadoweb.org/), the > web server/framework we built at FriendFeed that we open sourced last > week (see http://bret.appspot.com/entry/tornado-web-server). > > The underlying non-blocking HTTP server is

Deploying with Apache: confused by odd PythonPath requirement

2009-09-13 Thread Dan06
I've 'successfully' deployed django in a development environment on Apache2. While, I've got it to work, I'm thoroughly confused by the PythonPath setting needed for it to work. I don't understand why I need to give the directory that contains the django 'project' AND the directory that contains

Running Django on Tornado's HTTP server

2009-09-13 Thread Bret Taylor
I am one of the authors of Tornado (http://www.tornadoweb.org/), the web server/framework we built at FriendFeed that we open sourced last week (see http://bret.appspot.com/entry/tornado-web-server). The underlying non-blocking HTTP server is fairly high performance, so I have been working this

django-admin.py the system cannot execute the specified program

2009-09-13 Thread about2flip
I am learning django, and I am having doubts if it is worth it. I am trying to startproject and I keep getting the system cannot execute the specified program error at my command prompt. I would type: django-admin.py startproject name and then I get the error. I am using python 2.6, django 1.1

Re: are you using mptt, treebeard or something else?

2009-09-13 Thread Tiago S.
What about django-easytree? I'm tempting to try it. http://bitbucket.org/fivethreeo/django-easytree/overview/ On Sep 4, 6:30 am, Aljosa Mohorovic wrote: > On Sep 3, 5:51 pm, Sandra Django wrote: > > > Sorry, a cuestion because I don't

Re: Date Field in ModelForm

2009-09-13 Thread Daniel Roseman
On Sep 9, 12:07 pm, mettwoch wrote: > Here is the definition of the field: > >     date_due       = models.DateField(auto_now_add=True) I'd guess that the problem is the auto_now_add. When that's set, the field is not editable (because the date can only be set at creation). So

New Django-based open source project - CCI:U Open Course Labs

2009-09-13 Thread Daybreaker
Hello, I'm going to introduce a new Django-based open source project. It is a web application that interfaces cloud-computing infrastructure as course labs which can be used by students and professors in universities. We are in still in very basic level, but with many people's contribution, I'm

Re: PyFacebook and python-twitter

2009-09-13 Thread Chris Babcock
On Sun, 13 Sep 2009 10:21:41 -0600 Adam Olsen wrote: > On Sun, Sep 13, 2009 at 9:54 AM, simba wrote: > > > > > I am looking for hosting that supports both of the above library. i > > have no idea on how to have these two libraries on shared hosting. > >

Re: Query with left join?

2009-09-13 Thread Daniel Roseman
On 2009/9/13, tom wrote: > > I have a model to save measurement data. Every datarow has a > identifier(CharField) and a value(FloatField) and a entry(ForeignKey). > For example: > > Entry Identifier value > 1s1 100 > 1d1 180 > 1

Re: Development and deployment wit Git

2009-09-13 Thread mr.tinn
fyi http://delicious.com/tag/git+tutorial have fun On Sun, Sep 13, 2009 at 11:55 PM, orschiro wrote: > > Hello guys, > > I'm a single developer but since a VCS like Git has some really nice > features, like the history, I want to use it for my webprojects I'm >

Development and deployment wit Git

2009-09-13 Thread orschiro
Hello guys, I'm a single developer but since a VCS like Git has some really nice features, like the history, I want to use it for my webprojects I'm building up with Django. But there are still some points I don't understand. How do I have to set up Git? Where do I start the repository - on

Re: PyFacebook and python-twitter

2009-09-13 Thread Adam Olsen
On Sun, Sep 13, 2009 at 9:54 AM, simba wrote: > > I am looking for hosting that supports both of the above library. i > have no idea on how to have these two libraries on shared hosting. > Please Help!! > I've got python-twitter installed on my webfaction account. I'm

Re: html template usage

2009-09-13 Thread Peter Bengtsson
Suppose you have a template called monster.html that looks like this: Company name Lorem ipsum Then, create a Django view and make it render a template called, say, home.html which you make to look like this: {% extends "monster.html" %} {% block title %}My Company!{%

PyFacebook and python-twitter

2009-09-13 Thread simba
I am looking for hosting that supports both of the above library. i have no idea on how to have these two libraries on shared hosting. Please Help!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: filter on entries from a certain user

2009-09-13 Thread Peter Bengtsson
I dont know what db.UserProperty() is but my guess is that that's something related to the model. Your form doesn't understand that so it defaults to None. If you omit the field owner from the form, perhaps the form won't attempt to fiddle with this and then the model is allowed to do it's magic.

Re: Memory limits

2009-09-13 Thread Peter Bengtsson
Hard to say as it depends on your app but can't you just run the app on your laptop and see how much memory it takes up when you run some basic stresstests. Django is quite close to pure python but when you extract large lists of model instance objects into lists it can push the memory

Re: urls.py

2009-09-13 Thread Peter Bengtsson
On Sep 13, 1:35 pm, ramanathan wrote: > (r'^/(.+)/$','proj.register.views.activate') > Change to (r'^(.+)/$','proj.register.views.activate') (notice the removed forward slash in the beginning otherwise you have to expect the URL to be http://localhost:8000//90/ >

Re: post_save signal to create the new user profile

2009-09-13 Thread Peter Bengtsson
Signals or no signals I think your profile model is wrong. By making it a subclass of User you're effectively getting all the fields of the User model. Write your profile model like this instead: class Employee(models.Model): user = models.ForeginKey(User) address = models.CharField(...)

Re: File Field max size and admin interface

2009-09-13 Thread Peter Bengtsson
One way of doing it, and to be honest the only one I know, is to set a limit in the fronting web server. In Nginx for example you add: client_max_body_size 10M; Sadly this means that if a user tries to upload a 11Mb file you won't be able to confront them with a user-friendly "error" message.

File Field max size and admin interface

2009-09-13 Thread drakkan
Hi, I'm using the admin interface with some filefield, I tested with a big file (200 MB) and it was successfully uploaded, this is ok but I would like a way to limiting the uploaded size for example to a maximun of 10 MB, any hints? thanks drakkan

Re: Updating request.POST

2009-09-13 Thread koranthala
On Sep 13, 6:38 am, koranthala wrote: > Hi, >    I have the following scenario. >    I am creating a custom admin page for one of the models. I am > adding few extra fields. If the extra fields are set, then the user > does not need to set the model fields. An example is

Re: Django1.1 logs me out after few seconds inactivity

2009-09-13 Thread Florian Schweikert
Maybe it's that old bug: http://blog.umlungu.co.uk/blog/2007/may/20/cookie-problem-django-admin/ Server Upgrade to Lenny is planned in the near future, I hope the problem solves itself with the dist-upgrade. greetz, Florian --~--~-~--~~~---~--~~ You received this

Re: post_save signal to create the new user profile

2009-09-13 Thread Dmitry Gladkov
Found My mistake, create parent_link: class Employee(User): user = models.OneToOneField(User, parent_link=True) address = models.CharField(max_length=50, null=True, blank=True) phone1 = models.CharField(max_length=15, null=True, blank=True) phone2 =

urls.py

2009-09-13 Thread ramanathan
(r'^/(.+)/$','proj.register.views.activate') (r'^(?P.*)$', 'django.views.static.serve', {'document_root': '/home/ramanathan/media/'}) These are the two lines in my urls.py file.. If i give http://localhost:8000/90/it is matched as http://localhost:8000/media/90/ insetad of getting

Memory limits

2009-09-13 Thread Pablo Escobar
Hi i'm wondering what is memory consumption for django 1.1 + postgre. Will it be enough to have VPS with 256 MB of RAM as entry level for recent projects? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

post_save signal to create the new user profile

2009-09-13 Thread Dmitry Gladkov
Hi! I've got user profile, that uses multi-table inheritance: class Employee(User): address = models.CharField(max_length=50, null=True, blank=True) phone1 = models.CharField(max_length=15, null=True, blank=True) phone2 = models.CharField(max_length=15, null=True, blank=True)

Re: Zip multiple files into a zipped folder for download?

2009-09-13 Thread DjangoRocks
ok thank you guys! I'll test it out and see how it goes. BEst Regards, Eugene On Sep 4, 11:11 pm, Dj Gilcrease wrote: > Here is how I do ithttp://dpaste.com/89530/ > > I am using a View class that I wrote to make my life easier so it wont > directly translate to a

Re: How to server static media secured by Django authentication

2009-09-13 Thread Lars Holm Nielsen
Hi, There's a couple of ways to do this, but none of them is really as easy as using basic/digest authentication in apache. Most of the methods posted until now passes the static file through django or at least python, which might not be ideal depending on your performance requirements.

filter on entries from a certain user

2009-09-13 Thread Peter Newman
Guys - I have class Contact(db.Model): person = db.ReferenceProperty(Person) contact_date = db.DateTimeProperty(auto_now_add=True) remarks = db.TextProperty() owner = db.UserProperty(auto_current_user_add=True) and a simple form class ContactForm(forms.ModelForm): class