On May 23, 2008, at 11:20 AM, [EMAIL PROTECTED] wrote:
>
> I find the "They're trusted, so let them enter it themselves" argument
> frustrating.
Not to mention: if they're trusted, then why do we have groups and
permissions?
>
>
> As someone above said, we're dealing with sites that
On Thu, May 22, 2008 at 8:58 PM, Qiang <[EMAIL PROTECTED]> wrote:
>
> how to config the MySQL before i run the manage.py? how do i know that
> MySQL is running?
>
> On May 23, 12:34 am, jonknee <[EMAIL PROTECTED]> wrote:
> > > _mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL
> >
sebey wrote:
OK so as you may see I have a lot of questions in helping build my
django project so here they are
1. with models do just create the fields that you need?
More or less-- yes
2. how can I import rss feeds(i am running a podcast network) from
other
I find the "They're trusted, so let them enter it themselves" argument
frustrating.
As someone above said, we're dealing with sites that potentially have
a very large number of users. In cases where there's more than a few
users, it becomes a hassle, a source of errors, and a time waster.
On Mar 30, 8:08 pm, [EMAIL PROTECTED] wrote:
> I have a field I'm using that shows where events are around our area
> for sports collectors, what I'd like to do is implement Google Maps,
> kind of like the Washington Post does here:
>
>
I cannot answer the original question but I can say that I have come
across (ok - created) cases where I needed to use id on an element
that may be under the control of a style higher up in the hierarchy.
My assumption is that classes are overruled by ids and perhaps to be
on the safe side for
Thanks for all of the feedback!
I no longer require users to enter employer information, and I've
listed what I track (IPs for spam).
Vault.com collects similar data, so I hope there won't be any legal
issues, but I've added a small disclaimer and I'll keep my fingers
crossed.
Yes, book4e, I'm
Juanjo Conti wrote:
> Several times I tried to generate an UML class diagram from my python
> classes. I have used epydoc and the buil-in feature of SPE but the
> resulting diagram did not like me.
>
> Is there a way to generate an UML class diagram from models.py? a
> stanalone app or command?
>
Hi Rajesh,
I checked that and it is...Any other suggestions?
Thanks
Emily
On May 22, 11:23 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi Emily,
>
> On May 22, 1:42 am, emy_66 <[EMAIL PROTECTED]> wrote:
>
> > I'm doing the tutorials and am up to part 2 where we can customise
> > admin
how to config the MySQL before i run the manage.py? how do i know that
MySQL is running?
On May 23, 12:34 am, jonknee <[EMAIL PROTECTED]> wrote:
> > _mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL
> > server on 'lo
> > calhost' (10061)")
>
> It can't connect to MySQL. Make
On Mar 30, 9:18 pm, Michael <[EMAIL PROTECTED]> wrote:
> I would search for "googlemapsAPI." Really though the integration
> with googlemapsis mostly a front end application. So you would
> create it all with front end javascript.
>
> The only real django knowledge to pass here would be to make
Thanks to everyone for all your help I have now got it working.
Yours sincerely,
Nanda
23 May 08
On May 22, 8:30 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 21-May-08, at 5:10 PM, nandu wrote:
>
> > I am having a problem with where to start when I am faced with
> > uploading a CSV
On Thu, May 22, 2008 at 3:22 PM, poschs <[EMAIL PROTECTED]> wrote:
> 1. I cant edit the ImageField by hand - e.g. If it currently contains
> 'images\fam1.jpg' I cannot manually type in images\fam2.jpg and have
> it accept it.
I don't follow what you're trying to do here. Does this "fam2.jpg"
On May 21, 3:31 pm, Gremmie <[EMAIL PROTECTED]> wrote:
> I was considering using django to generate an RSS feed for a podcast.
> iTunes likes it very much if you add some non-standard tags to the
> xml. Is this there a way to leverage the existing slick syndication
> feature of django but also
Graham,
Thanks very much. That was extremely helpful.
Regards,
Richard
--~--~-~--~~~---~--~~
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
Several times I tried to generate an UML class diagram from my python
classes. I have used epydoc and the buil-in feature of SPE but the
resulting diagram did not like me.
Is there a way to generate an UML class diagram from models.py? a
stanalone app or command?
Thanks you,
--
Juanjo Conti
how can I get a colium of information (in this case rss feeds) and
grab them use them in views.py along with feedpareser and have
them(rss feeds) had all have an instance of a template?
thanks you
--~--~-~--~~~---~--~~
You received this message because you are
On May 22, 4:11 pm, jabbercat <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to upload files with a Form generated by form_for_model(). The
> form is ok, but I can't upload files, because I get different errors.
>
> I get an error, that FileForm has no attribute cleaned_data. Knows
> somebody
On Thu, May 22, 2008 at 3:21 PM, Brandon Taylor <[EMAIL PROTECTED]>
wrote:
>
> Hi everyone,
>
> I'm having a problem with an url pattern. When I try to do a custom
> view using the newforms admin, such as:
>
> (r'^admin/surveys/survey/answers/(?P[-\w]+)/$',
> 'app.surveys.views.answers_list'),
>
--
---
Online Dating Tips - Interesting & Informative
http://funlimit.blogspot.com
---
Computer Tips,Tricks For Fun And Educational
http://systemhelp4u.blogspot.com
cleaned_data doesn't get populated until is_valid() is called on the
form, the save method will be trying to access the cleaned_data fields
so that is likely what's causing the problems.
- Andrew Ingram
On May 22, 9:11 pm, jabbercat <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to upload files
Thanks for the info. I skimmed the code and "docs" for the comments
module but it seems the threadecomments library is a way better place
to start. It's amazing that no one has created a decend and featureful
comments module for django, yet, though. I'll have to hack around the
threadedcomments
This is still pretty WET for my tastes, but I do not completely understand
your requirements. Programming is after all an art and a science. I have a
tendendcy to normalize things as much as I feel is reasonable, perhaps it is
more than you require. I would at least consider something like the
Hello,
I want to upload files with a Form generated by form_for_model(). The
form is ok, but I can't upload files, because I get different errors.
I get an error, that FileForm has no attribute cleaned_data. Knows
somebody the problem?
Here my code:
The template:
Add a file
Here are my relevant settings:
MEDIA_ROOT = os.path.join(os.path.dirname(__file__),
'static').replace('\\', '/')
MEDIA_URL = '/static/'
I tried using 127.0.0.1:8000 for the MEDIA_URL (as the documentation
suggests) but my files would not display properly. MEDIA_ROOT above
evaluates to
Hi everyone,
I'm having a problem with an url pattern. When I try to do a custom
view using the newforms admin, such as:
(r'^admin/surveys/survey/answers/(?P[-\w]+)/$',
'app.surveys.views.answers_list'),
If I remove:
(r'^admin/(.*)', admin.site.root), #the default routing for newforms-
[EMAIL PROTECTED] wrote:
> I've tried low-level api, and must be missing something:
>
> class RideNode(template.Node):
> def __init__(self, varname):
> self.varname = varname
>
> def render(self, context):
> if cache.get('rod'):
>context[self.varname] =
Turns out that this can be done with what is described at [1].
[1] http://www.djangoproject.com/documentation/static_files/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
On May 22, 1:40 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> This function may create either a bound or unbound form, depending on
> whether data is given a value other than None. An unbound form returns
> False for is_valid() yet has no errors. (form.is_bound tells you whether a
> form is
I've tried low-level api, and must be missing something:
class RideNode(template.Node):
def __init__(self, varname):
self.varname = varname
def render(self, context):
if cache.get('rod'):
context[self.varname] = cache.get('rod')
else:
ride =
I had this same problem. I think it is still a problem even after the
fixes marked #5027 and #5917.
I'm a Django newbie, so please forgive me if I'm just confused or if I
have missed any future fixes that address this problem.
Gary Davis
Here's a suggested patch to the SelectDateWidget: (to add
Hello,
I've a very simple views file, that I would like to test with doctests.
For example a partial code is this:
@require_POST
def save(request, type):
'''
This adds a new element to the queue
>>> response = c.post('/queue/new/email', {'title': 'MyTitle'})
>>>
On May 22, 1:08 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> Of more interest than the html printed for the form would be the code you
> use to create the form, and the template you use to display the form.
> Without those it is hard to guess what is going wrong.
Thanks for responding, Karen.
[EMAIL PROTECTED] wrote:
>
>
> On May 22, 12:11 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote:
>> I don't know if this is the "right" direction but I've had success using
>> memcached to implement of the day items.
>>
>> If the item is in the cache it gets served. Otherwise I fetch from
>>
On May 23, 2008, at 12:27 AM, jonknee wrote:
>
> On May 22, 11:08 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
>
>> I tried using select_related('categories') on the original book
>> query,
>> but that seemed to actually slow it down. Are there any other ways to
>> slurp this up into
On Thu, May 22, 2008 at 10:55 AM, bobhaugen <[EMAIL PROTECTED]> wrote:
>
> I got a newform that fails validation but gives no errors. Have tried
> many variations, don't have any idea what is wrong.
>
> Here's the form:
>
> class PaymentTransactionForm(forms.Form):
>transaction_id =
Does anyone have any experience using djangosearch, djapian, or django-
search? Any tutorials for using any of them? I'm kinda unsure as to
where to begin implementing any of them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Currently, I'm working from the demos in the book and the site.
Here is what I have currently.
forms.py:
from django import newforms as forms
from django.newforms import form_for_model
from models import PlanMember
TITLES = (
('Miss','Miss'),
('Mrs.','Mrs.'),
('Ms.','Ms.'),
On May 22, 12:11 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote:
>
> I don't know if this is the "right" direction but I've had success using
> memcached to implement of the day items.
>
> If the item is in the cache it gets served. Otherwise I fetch from
> database and store in cache with
Interesting
I could set-up a single people table/model with a field indicating the
position/relation to the form/application.
I would guess I would to hand make the blank form then and am unsure
how to parce it on the other side...
Didn't see that in the tutorials...
Lance
On May 21, 4:36
However the code works for earlier versions of mysql. Which is
interesting..
Looks like the best fix at the moment would be to generate another
view and use
a specific query for the date. I wonder if a warning is generated with
the earlier version of mysql.
I wondered if anyone else had
Being new to web development I was wondering what the best resource
would be for web design patterns implemented in django, js, ajax,
dojo.
Specifically -- I am interested in dynamic drop down list, where the
list items come from my database, but are links that allow one to
drill down. Each
[EMAIL PROTECTED] wrote:
> This should be really easy, but I haven't slept in a week and I'm not
> that smart to begin with. I want to get an item of the day.. quote of
> the day, tip of the day, whatever.
>
> I don't know how many of these items there will be. I am pretty sure I
> want a
This should be really easy, but I haven't slept in a week and I'm not
that smart to begin with. I want to get an item of the day.. quote of
the day, tip of the day, whatever.
I don't know how many of these items there will be. I am pretty sure I
want a template tag.
Can someone point me in the
> _mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL
> server on 'lo
> calhost' (10061)")
It can't connect to MySQL. Make sure your settings are accurate and
that MySQL is running.
--~--~-~--~~~---~--~~
You received this message because you are
On May 21, 9:33 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> Well, newforms-admin is being written to make the HttpRequest object
> available as an argument to the various ModelAdmin methods, which
> means that when you set up your own custom admin you can do pretty
> much anything you want.
when i use the Manage.py syncdb the creat the database . the django
throw me this below.
what's the problem about it? anyone can tell me? thanks very much
Traceback (most recent call last):
File "E:\wiki\manage.py", line 11, in
execute_manager(settings)
File
On May 22, 11:08 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> I tried using select_related('categories') on the original book query,
> but that seemed to actually slow it down. Are there any other ways to
> slurp this up into something tidier?
>
> I don't have much experience with SQL,
An other case where I get empty result sets unexpectedly is when I
want to join 2 querysets, one holding the objects that the current
user entered and the other holds the objects marked as favorite by the
current user.
I have a manager for Favorite objects that takes the model and the
user and
Hi all, I'm new to the group with a fairly simple question. I'd like
to use the Django webserver to demo a site I'm working on, and I would
like to be able to add a file I've created to the document root. The
file is a simple crossdomain.xml file for flash, and I'd like it to be
accessible at
for c in city.person_set.all()
http://www.djangoproject.com/documentation/db-api/#backward
On May 22, 10:54 am, Dan <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I'm new to Django, so please forgive my newbness :)
>
> The following is my model:
>
> class City(models.Model):
> name =
On May 20, 3:24 pm, "Gene Campbell" <[EMAIL PROTECTED]> wrote:
> I have used Jira, and I'm looking at Trac today. Is there something
> more Djangonic?
+1 for Trac, especially the latest version: 0.11 (currently in RC 1)
now that they have easy_install it should be no problem getting it
ive been changing the structure of my projects/applications over and
over.
thats because every time i change it, i realize i can make it a bit
different.
the whole time i felt it was neccessary to allow for multiple projects
on the same host.
well now that ive finally gotten somewhere, i was
In the meantime I did the following:
def save(self):
try:
self.score = int(self.score)
except:
pass
super(Entry, self).save()
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On May 22, 6:29 am, "Scott Moonen" <[EMAIL PROTECTED]> wrote:
> I suspect your problem may be due to the fact that your display value for 3
> is a number rather than a string. Try changing:
>
> CHOICES = [(1, '1'), (2, '2'), (3, 3), (4, '4'), (5, '5')]
>
> to
>
> CHOICES = [(1, '1'), (2,
Cool, I like the design. Do you use webfaction or some what?
On 5/22/08, Jashugan <[EMAIL PROTECTED]> wrote:
>
>
>
> On May 21, 1:27 pm, Bret W <[EMAIL PROTECTED]> wrote:
>> Hey all-
>>
>> Over the past few evenings, I've put together a simple site for
>> submitting and listing job and salary
I saw Simon's debug footer middleware
(http://www.djangosnippets.org/snippets/766/
) come through the pipeline, and decided I'd give it a whirl, and I'm
now considering a career in gardening. I have some views I knew were
slow, and hit the database hard, but looking at the actual queries
I got a newform that fails validation but gives no errors. Have tried
many variations, don't have any idea what is wrong.
Here's the form:
class PaymentTransactionForm(forms.Form):
transaction_id = forms.CharField(widget=forms.HiddenInput)
Hello!
I'm new to Django, so please forgive my newbness :)
The following is my model:
class City(models.Model):
name = models.CharField(maxlength=100)
class Person(models.Model)
name = models.CharField(maxlength=100)
city = models.ForeignKey(City)
class Book(models.Model)
On Thu, May 22, 2008 at 10:01 AM, Cliff <[EMAIL PROTECTED]> wrote:
>
> I've got an LDAPBackend.py implementing a class for LDAP
> authentiction. But I can't seem to get it to be used in my Django
> project.
>
> I am putting the LDAPBackend.py in the root directory of my project,
> right next to
The team I work on uses Trac and it seems to be working really well.
Of course, any project tracking system's effectiveness depends on how
faithful everyone is to use it. One of Trac's main strengths is its
ability to integrate with a SVN repository on the same server. It
provides an almost
I've got an LDAPBackend.py implementing a class for LDAP
authentiction. But I can't seem to get it to be used in my Django
project.
I am putting the LDAPBackend.py in the root directory of my project,
right next to the settings.py file.
In settings.py, I set
AUTHENTICATION_BACKENDS = (
Hi,
The "bitwise or" ('|') works fine when taking the union of query sets
such as:
Note.objects.filter(tag='foo') | Note.objects.filter(tag='bar')
But the result of following is an EmptyQuerySet object:
Note.objects.filter(tag='foo') | Note.objects.none()
Shouldn't it be equivalent to
Hi all,
I've written up a bunch of techniques for debugging Django
applications:
http://simonwillison.net/2008/May/22/debugging/
I'm collecting more tips in the comments.
Cheers,
Simon
--~--~-~--~~~---~--~~
You received this message because you are
Hi James,
On May 21, 3:30 am, James Tauber <[EMAIL PROTECTED]> wrote:
> I find myself being inconsistent in whether I put model helper methods
> on a custom manager or just as top-level functions in models.py
>
> For example, in django-friends I have:
>
> class
I suspect your problem may be due to the fact that your display value for 3
is a number rather than a string. Try changing:
CHOICES = [(1, '1'), (2, '2'), (3, 3), (4, '4'), (5, '5')]
to
CHOICES = [(1, '1'), (2, '2'), (3, '3'), (4, '4'), (5, '5')]
-- Scott
On Wed, May 21, 2008 at
Hi Shabda,
If you are using the where2 example you will need to use the gis-
newforms mercurial branch.
http://geodjango.org/hgweb.py/gis-newforms/
A sample project can be found here.
http://geodjango.org/hgweb.py/where2/
Cheers,
Travis
On May 22, 7:42 am, "Ariel Mauricio Nunez Gomez"
Hi Emily,
On May 22, 1:42 am, emy_66 <[EMAIL PROTECTED]> wrote:
> I'm doing the tutorials and am up to part 2 where we can customise
> admin look and feel - I cannot get django to read my customise
> template file by editing TEMPLATE_DIRS. I am working in windows using
> the lastest dev version
Hi,
On May 22, 8:54 am, djangoista <[EMAIL PROTECTED]> wrote:
> Thanks a lot for your reply - I think I'll do that, thats a good point
> about space being cheaper, especially as its just plain text.
Just for the record, the Django site has a nice cookbook article that
discusses this.
Thanks a lot for your reply - I think I'll do that, thats a good point
about space being cheaper, especially as its just plain text.
On May 22, 1:48 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> I don't know what the standard is, but I'm doing exactly what you
> detail here: two DB fields,
Jashugan wrote:
> Hello I have the following code in my model:
>
> class SomeMode(models.Model):
>
> CHOICES = [(1, '1'), (2, '2'), (3, 3), (4, '4'), (5, '5')]
>
> score = models.IntegerField(choices=CHOICES)
>
>
> When I change the score in the admin interface it throws this error:
>
>
I don't know what the standard is, but I'm doing exactly what you
detail here: two DB fields, one that stores Markdown text, and
another, not visible in the Admin interface, that stores HTML. In the
save method, one gets dumped into the other, via the markdown filter.
If you or one of
BTW, you still have to follow the postgis database and user creation parts.
--~--~-~--~~~---~--~~
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
If you have ubuntu you can:
sudo apt-get install mercurial
hg clone http://geodjango.org/hg/where2.0/
cd where2.0/ubuntu
more ubuntu_install.txt
(Follow the instructions from step 5)
Regards,
Ariel.
--~--~-~--~~~---~--~~
You received this message because you are
Hi,
I'm about to start on a simple django-based blogging engine (I'm sure
there are already many out there, but I want to have a go a creating
one from scratch). I'm planning on using Markdown (lightweight markup
language) for creating blog posts, but I'm not sure what to store in
the DB.
One
On 21-May-08, at 5:10 PM, nandu wrote:
> I am having a problem with where to start when I am faced with
> uploading a CSV file. I do not want to create a model for the file as
> there is no need for me to keep track of the files that I am uploading
> to the server.
you do not need a model -
On May 22, 2:38 am, puff <[EMAIL PROTECTED]> wrote:
> Thanks Graham and Ben for the prompt feedback. It was most helpful.
>
> > Depending on the hosting mechanism has been configured, anyDjango
> > startup may only happen the first time a request comes in. This would
> > potentially delay
Guys,
I've read through the docs, but haven't found how to do the following.
On the admin site, for each object listed in the multi select box
created by a many to many field, I want to be able to click on the
object, or link next to it which will direct me to the change page for
that object.
On Wed, May 21, 2008 at 01:41:35PM -0500, James Bennett wrote:
> The way I'd do this is with an application which provides a basic
> model with the core fields, and then other models in other
> applications relating to it and adding information as needed.
> Incidentally, this leads to precisely
Pls check our website to view more products :
www.putshoes.com
MSN: putshoes at hotmail com
email: putshoes at yahoo cn
We are one of the largest and credible Trading Company in China. We
sell many kinds of fashionable products . Here are the three reasons
for you to work with us :
1. All our
Pls check our website to view more products :
www.putshoes.com
MSN: putshoes at hotmail com
email: putshoes at yahoo cn
We are one of the largest and credible Trading Company in China. We
sell many kinds of fashionable products . Here are the three reasons
for you to work with us :
1. All our
Pls check our website to view more products :
www.putshoes.com
MSN: putshoes at hotmail com
email: putshoes at yahoo cn
We are one of the largest and credible Trading Company in China. We
sell many kinds of fashionable products . Here are the three reasons
for you to work with us :
1. All our
On May 22, 2008, at 4:41 PM, sebey wrote:
>
> so if that is the case could I do all the processing in views.py or
> models.py?
The processing of incoming feed items (which you're doing at regular
intervals set by your cron job, using feedparser), would all have to
take place in your
so if that is the case could I do all the processing in views.py or
models.py?
On May 22, 3:48 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> On May 22, 2008, at 5:15 AM, sebey wrote:
>
> > that script you told me to do how do i get it running though the admin
> > interface?
>
> It's not going
Is there a simpler way to install GeoDjango, than the one mentioned at
http://code.djangoproject.com/wiki/GeoDjangoInstall ?
Also is there any documentation about GeoDjango apart form the one at
the wiki?
--~--~-~--~~~---~--~~
You received this message because
85 matches
Mail list logo