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:http://127.0.0.1:8000/mysite/Start/
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
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 ta
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:
>
> django-admin.py startproject name
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 hand-crafted slugific
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 django.template.defaultfil
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 can
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 slugify
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/
pgpcJxfIZ1MCG.pgp
Description: PGP signature
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 = request.POST['foo
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
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
django-u
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, P
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 directory that contains the
> dj
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 si
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 ma
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 server
first was becau
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 fairly high perform
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
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 w
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 o
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 understand.mpttrequires v1.1, but not
> > SVN version?
>
>
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 the field is by de
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 s
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.
> > Please Help!!
> >
>
> I've got python-tw
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
> 1q5 300
> 2
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
> building up with Django.
>
> But
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 my
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 sure it
would be no troubl
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!{% endbloc
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" grou
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.
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
consumption
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/
> (r'^(?P.*)$', 'django.views.st
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(...)
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.
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
--~--~-~--~~~---~--~
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 given below:
>
> Model
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 m
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 = models.CharField(max_length=15,
(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 redirec
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
"Djan
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)
sky
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 standard view function but it
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.
Anyway,
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 Meta:
46 matches
Mail list logo