hello,
is there a way to automate creation of administrator role for
django.contrib.admin application?
if i run "./manage flush --noinput" it does not create one.
thanks
konstantin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
hi all i have an app(USERS INFO) where the users details and photos are
maintained .when i just click the app USER INFO it displays all the users
details along with the thumbnail image of the photo and a link to the photo
. but when i just click the link it is not opening neither in the same
window
HOT PICS OF INDIAN BABES
http://bollywoodactress.blogspot.com
--~--~-~--~~~---~--~~
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 fro
Hey Gerard...I posted a sample piece of code for your question the
other day... that had code for the model/view/template were you
not able to get that working? You can ask me questions about if it
you need to..I don't mind.
Carole
Link to previous sample:
http://groups.google.com/group/dja
Hi,
as part of a cleanup we do in FFSomething, I decided to create a
library
of all the generic applications and utilities created along the way. I
looked around and hasn't seen a larger project which tries to fill
this
gap, so I started one. The idea is to develop and collect useful
shortcuts, a
hello,
i am using fixtures for site deployment. it would be perfect if i
could pull large amounts of data for fields in to my fixtures file
from external files. say, for example, my models have text fields that
contain html markup. i am pretty sure this cannot be done but i wanted
to ask anyways
joe - thanks for the tip. turns out it wasn't including the
vhosts.conf file. so i got everything to work on mediatemple's (dv)
3.0 server. now, i've run into another issue. my company runs a (dv)
2.0 box that came standard with python 2.2. i upgraded to python 2.3,
but now mod_python still points
On Wed, 2007-03-07 at 02:25 +0100, Bram - Smartelectronix wrote:
> > (1) When you create a patch, best to do it from the top of the Django
> > source tree (the directory just about django/). Then we can tell which
> > file you are patching. There are many files called __init__.py in our
> > source
On Wed, 2007-03-07 at 02:34 +0100, Bram - Smartelectronix wrote:
> Malcolm Tredinnick wrote:
> > (2) This is the sort of thing that should come with a test to ensure we
> > don't introduce the same mistake again. Have a look in
> > tests/regressiontests/templates/tests.py for related tests and add
Malcolm Tredinnick wrote:
> (2) This is the sort of thing that should come with a test to ensure we
> don't introduce the same mistake again. Have a look in
> tests/regressiontests/templates/tests.py for related tests and add a
> couple of options in there.
i forgot to ask: should additions to th
> (1) When you create a patch, best to do it from the top of the Django
> source tree (the directory just about django/). Then we can tell which
> file you are patching. There are many files called __init__.py in our
> source tree and we really need to know *which one* is the right one to
> patch.
Hi Bram,
On Wed, 2007-03-07 at 01:37 +0100, Bram - Smartelectronix wrote:
> as it's the first patch i do, perhaps someone can tell me if i did well ;-)
>
> http://code.djangoproject.com/ticket/3670
Happy to provide feedback. A couple of things that jump out at me from
reading this patch:
(1) W
On Tue, 2007-03-06 at 15:45 -0800, Mary wrote:
> 1. installed django-databasetemplateloader.tar.gz
> 2. put template folder in my project
> 3. add in setting.py the following:'myapp.template',and
> 'myapp.template.loaders.database.load_template_source',
> 4. I restarted my django server
> 5. I exe
On 3/6/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
> I'm trying to get all the grades that belong to a certain student in a
> certain section and order them by when the assignments were due.
>
> grades = Grade.objects.filter(student=user,
> grade_book_column__section=section).order_by(
>
This is kind of quick and dirty, but I think it does the job. Someone
can correct me if I'm wrong. There may be an easier way; I haven't
looked at this since last fall.
You need a form with a file upload in it:
Upload a new file:
Then you need to create view code to catch the file:
if req
as it's the first patch i do, perhaps someone can tell me if i did well ;-)
http://code.djangoproject.com/ticket/3670
- bram
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
Thanks so much for your help. That works great.
CT
> > I am using the newforms functionality, but I am having trouble
> > validating my form when two fields are needed to create the validation
> > rule.
>
> try this:
>
>def clean_password_2(self):
>get = self.clean_data.get
>
On Tue, Mar 06, 2007 at 05:43:26PM -, evenrik wrote:
>
>
> I added a method to threadlocals.py that allows me to set the user so
> I can run code in the shell that depends on get_current_user()
> returning a user:
>
> def set_current_user(user):
> _thread_locals.user = user
>
> This sh
I have these two models:
class GradeBookColumn(models.Model):
assignment = models.ForeignKey(Assignment,
related_name='grade_book_columns')
section = models.ForeignKey(Section)
when_assigned = models.DateTimeField(blank=True, null=True)
when_due = models.DateTimeF
Hello, Please I need to find a way to upload a file using django, i've
found several resources but I cant use any because the examples are
not well explained and im a django newbie, I would like to know if
someone knows a place where I can find a very nice step by step
turorial with the templates
We'd have to see your view code (and probably urls.py) to know what was
causing this...
On Tue, 2007-03-06 at 15:29 +, [EMAIL PROTECTED] wrote:
> Dear all,
>
> I am making simple blog for myself using Django. After made models and
> create necessary urls, I run the application and got: Page
1. installed django-databasetemplateloader.tar.gz
2. put template folder in my project
3. add in setting.py the following:'myapp.template',and
'myapp.template.loaders.database.load_template_source',
4. I restarted my django server
5. I execute python manage.py syncdb
i got this error:
Exception T
[EMAIL PROTECTED] wrote:
> Dear all,
>
> I am making simple blog for myself using Django. After made models and
> create necessary urls, I run the application and got: Page Not Found.
>
> It says:
>
>
> Page not found (404)
> Request Method: GET
> Request URL: http://127.0.0.1:8000/blog
oh men. how do i get more infos on it?
>
> www.OutpatientSurgicare.com/video/
> Outpatient Doctors Surgery Center is committed to offering the
> healthcare the community needs. We offer patients a meaningful
> alternative to traditional surgery. This state-of-the-art outpatient
> surgery center,
apparently you cannot run it from the command line unless you set the
environment variable.
konstantin
On Mar 6, 3:26 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> It appears my thick-headedness is acting up again. How would I go
> about adding that from the command line? How DOES one run
You can do something like this (all in a single command line),
assuming "myproject" is in PYTHONPATH:
DJANGO_SETTINGS_MODULE="settings" ./daily_cleanup.py
-or-
DJANGO_SETTINGS_MODULE="myproject.settings" ./daily_cleanup.py
Note: You won't be able to run the above script, unless you can do
the
here is my model :
text = models.TextField(help_text='Rich Text Editing.')
class Admin:
js = ['js/admin/AddRichTextEditing.js']
list_display = ('title','owner','time_created')
i have added the dojo folder in my media folder and i have added
AddRichTextEditing.js in js/adm
I had similar problems, trying to tie the form and model too closely.
>From what I understand the form needs to be aware of the model(s), but
there isn't anything forcing you to a 1:1 relationship (form_for_model
does that for convenience, but isn't the only way). You just have to
override __init
It appears my thick-headedness is acting up again. How would I go
about adding that from the command line? How DOES one run
daily_cleanup.py?
On Mar 6, 1:50 pm, "akonsu" <[EMAIL PROTECTED]> wrote:
> sorry i was not clear...
>
> the document explains how to use settings without seting the
> DJANGO
Since form_for_model isn't nearly finished yet (regarding with
FileFields and customization - or I just can't find how it works), I
have decided to just repeat myself and create my own forms.
I thought that it'd be very intuitive if a form instance gets bound to
the data from a model instance, bu
Totally pointless :P but it was a fun lunch break
http://www.djangosnippets.org/snippets/86/
Cheers,
Stephen
On Mar 6, 12:13 pm, "sjzabel" <[EMAIL PROTECTED]> wrote:
> I agree with James^2
>
> I do find the appended slash to be a little bit distracting when
> referring to a single item. However
sorry i was not clear...
the document explains how to use settings without seting the
DJANGO_SETTINGS_MODULE variable. which seems to be the problem in your
situation.
and example from the document:
from django.conf import settings
settings.configure(DEBUG=True, TEMPLATE_DEBUG=True,
TEMPLA
On 3/6/07, Austin Govella <[EMAIL PROTECTED]> wrote:
>
> What does this mean?
>
> "unbound method contribute_to_class() must be called with TextField
> instance as first argument (got ModelBase instance instead)"
>
>
>
> And how do I know where to look to find the problem?
It looks like an error
Thanks, but I don't have any reason to believe I have a problem with
my settings file. I think I'm not running daily_cleanup.py properly.
Unless I'm totally misunderstanding what you're trying to tell me.
On Mar 6, 1:09 pm, "akonsu" <[EMAIL PROTECTED]> wrote:
> hello,
>
> this might help:
>
> ht
hello,
this might help:
http://www.djangoproject.com/documentation/settings/#using-settings-without-the-django-settings-module-environment-variable
cheers
konstantin
On Mar 6, 2:05 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I think I need to clean out old sessions, but when I try to
I think I need to clean out old sessions, but when I try to manually
run daily_cleanup.py from the command line, I'm getting:
Traceback (most recent call last):
File "daily_cleanup.py", line 8, in ?
from django.db import backend, connection, transaction
File "/home2/baxter/lib/python2.4/d
Now's a good time to try the new testing framework's test client
http://www.djangoproject.com/documentation/testing/#test-client
login as whomever, send some URLs, check the results. I know it ain't
quite what you're looking for, but it may help.
--~--~-~--~~~---~--~
On 3/6/07, Austin Govella <[EMAIL PROTECTED]> wrote:
> "unbound method contribute_to_class() must be called with TextField
> instance as first argument (got ModelBase instance instead)"
Did you type 'TextField' where you meant 'TextField()' ?
--
"Bureaucrat Conrad, you are technically correct -
What does this mean?
"unbound method contribute_to_class() must be called with TextField
instance as first argument (got ModelBase instance instead)"
And how do I know where to look to find the problem?
--
Austin Govella
Thinking & Making: IA, UX, and IxD
http://thinkingandmaking.com
[EMAI
On Mar 5, 6:45 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> Hmm ... for consistency's sake, we should change that. We do seem to be
> pretty much always resolving unquoted tokens as variables in the current
> context. The only real exception I can find is the "ssi" tag (you have
> to gloss
I agree with James^2
I do find the appended slash to be a little bit distracting when
referring to a single item. However, for practical purposes I use the
always append approach because I do feel that it is less ambiguous.
Is the slash on a single item distracting enough to warrant a
middleware
I added a method to threadlocals.py that allows me to set the user so
I can run code in the shell that depends on get_current_user()
returning a user:
def set_current_user(user):
_thread_locals.user = user
This should work for you.
On Mar 6, 3:35 am, "Aidas Bendoraitis" <[EMAIL PROTECTED]
Thanks. That clears some stuff up, but not everything.
The thing I'm still _really_ unclear on is how one adds a profile. So
to go back to the code below:
> > @login_required
> > def viewprofile(request):
> > uname = request.user.username
> > try:
> > profile = request.user.get_p
I just created a python module to solve this problem for myself. It's
let's you write SQL that returns Django objects. For your problem,
you could do something like this:
for ticket in DjSelect("""
from {Ticket:ticket} left join {User:ticket.resolved_by}
on {ticket.resolved_by}.id =
Yeah...I think it comes down to what you need to do with them I
needed to move mine into sub directories and rename them...so it was
easier to do it the other way. He had said he tried to do it the
regular way first and could't get it working... so then tried the
django waythat's why I po
Hi Filipe,
On Mar 6, 2:53 pm, "Filipe Correia" <[EMAIL PROTECTED]> wrote:
> http://somedomain.org/people/12
> http://somedomain.org/people/12/belongings/
If you think of the mapping of these URLs to files (I know there
aren't actually any files involved, but it's a useful analogy) then
what is "
On 3/6/07, Filipe Correia <[EMAIL PROTECTED]> wrote:
> Is there any criteria that can in fact be considered a best practice
> when designing URLs?
> I would very much appreciate to know of other's experience on this.
In my experience, it's fairly subjective. Personally, I don't like
having a slas
Am Tue, 06 Mar 2007 15:29:06 -
schrieb "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
> I am making simple blog for myself using Django. After made models and
> create necessary urls, I run the application and got: Page Not Found.
> [...]
> >>> from mysite.blog.models import Post
> >>> Post.objects
Dear all,
I am making simple blog for myself using Django. After made models and
create necessary urls, I run the application and got: Page Not Found.
It says:
Page not found (404)
Request Method: GET
Request URL:http://127.0.0.1:8000/blog/
No post available
Yes, it says No Post
Hi,
I've got a doubt concerning the use of slashes on the end of URLs. I'm
currently using APPEND_SLASH to normalize all the URLs in my django
app, but I can't help noticing that some URLs would make more sense to
me without the last slash. Some examples:
http://somedomain.org/people/ -
On 3/6/07, Rubic <[EMAIL PROTECTED]> wrote:
>
> Jay,
>
> I would think you'd want to do a custom form for something like this.
> I'll be doing something similar soon for a scheduling system. You're
> familiar with the dateutil module?
>
> http://labix.org/python-dateutil
Hmm, not familiar with t
Jay,
I would think you'd want to do a custom form for something like this.
I'll be doing something similar soon for a scheduling system. You're
familiar with the dateutil module?
http://labix.org/python-dateutil
--
Jeff Bauer
Rubicon, Inc.
--~--~-~--~~~---~--~
HOT PICS OF INDIAN BABES
http://bollywoodactress.blogspot.com
--~--~-~--~~~---~--~~
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 fro
hi thanks carole today full day searched for this problem could not find any
solution . here in my model i even have categories but there are only 4-5
and each category has got 500-700 items . so if u can tell me an efficient
way like manytomany field where i have a list box and could search it ..
On 3/6/07, Adam Rutkowski <[EMAIL PROTECTED]> wrote:
>
> First of all I'd like to say hi - I'm completely new to Django & Python,
> however very excited about it; great framework, great language.
> While reading Django docs I came across a problem, that I wasn't be able
> to find exact solution fo
On 06/03/07, Adam Rutkowski <[EMAIL PROTECTED]> wrote:
>
> First of all I'd like to say hi - I'm completely new to Django & Python,
> however very excited about it; great framework, great language.
> While reading Django docs I came across a problem, that I wasn't be able
> to find exact solution
On 27/01/07, Julian Romero <[EMAIL PROTECTED]> wrote:
> On 1/27/07, Don Arbow <[EMAIL PROTECTED]> wrote:
>
> >
> > Using print statements to debug a program is like figuring out what
> > is wrong with your car by listening for weird noises. Using a
> > debugger is like opening the hood and tweakin
First of all I'd like to say hi - I'm completely new to Django & Python,
however very excited about it; great framework, great language.
While reading Django docs I came across a problem, that I wasn't be able
to find exact solution for. The point is how to handle a situation when
the user model i
On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> You don't have to use the ImageField if you just want to upload it the
> old python way, you can just store the filename in a textfield...I
> gave a sample in a post yesterday:
>
> http://groups.google.com/group/django-users/browse_thread
You don't have to use the ImageField if you just want to upload it the
old python way, you can just store the filename in a textfield...I
gave a sample in a post yesterday:
http://groups.google.com/group/django-users/browse_thread/thread/ede06a3602a39100?hl=en
On Mar 6, 3:38 am, limodou <[EMAIL
This is Decent System. Stop Sending Spam here.
On Mar 6, 4:05 pm, "engin kaya" <[EMAIL PROTECTED]> wrote:
> http://autohits.dk/?ref=1099539503
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Hi Vertigo.
On Mar 6, 9:05 am, "Vertigo" <[EMAIL PROTECTED]> wrote:
> The default HTML rendering of form errors, with method as_table() at
> least, is to display them above the form field. Am I the only one
> concerned with this? :-)
I wanted the error before the form field, but after the label.
hey thank u guys this time just did manual replacement and it works fine
On 3/6/07, limodou <[EMAIL PROTECTED]> wrote:
>
>
> On 3/6/07, MacH G <[EMAIL PROTECTED]> wrote:
> > hi all ,
> > for the list_filter to add fields other than specified fields i got a
> patch
> > file (list_filter.3.diff ) fr
On 3/6/07, MacH G <[EMAIL PROTECTED]> wrote:
> hi all ,
> for the list_filter to add fields other than specified fields i got a patch
> file (list_filter.3.diff ) from the following url
> http://code.djangoproject.com/ticket/3400 but i do know
> how to apply it in windows could somebody tell me t
Am Tue, 6 Mar 2007 17:37:21 +0530
schrieb "MacH G" <[EMAIL PROTECTED]>:
> i do [not] know how to apply
> it in windows could somebody tell me the command to apply it .
If you are comfortable with the unix command line, install cygwin
(http://www.cygwin.com/). You'll get a full unix shell environ
Hi "ezln23",
> I am using the newforms functionality, but I am having trouble
> validating my form when two fields are needed to create the validation
> rule.
try this:
class CreateAccountForm(forms.Form):
name = forms.CharField(max_length=50)
name_phonetic = forms.CharField(max_length=50
hi all ,
for the list_filter to add fields other than specified fields i got a patch
file (*list_filter.3.diff* ) from the following url
http://code.djangoproject.com/ticket/3400 but i do know how to apply it in
windows could somebody tell me the command to apply it .
thanks in advance
ashok
--
I am using the newforms functionality, but I am having trouble
validating my form when two fields are needed to create the validation
rule. In particular, I want to verify that two password fields have
the same value. I thought I could use the BaseForm.clean() method but
it is giving me the follow
I think (I'm not sure that it does nothing, and you have to manually
use request.FILES to get the file you want, and manually upload it to
wherever you want. Please someone correct me if I'm wrong.
It's a kludge for now, but I think (hope) Adrian is working on it...
If it worked automatically (th
Can't help you much with this, but according to the docs
(http://www.djangoproject.com/documentation/authentication/#methods),
"is_authenticated() -- Always returns True" for User model and it
returns False for AnonymousUser model.
Regards,
Aidas Bendoraitis [aka Archatas]
On 3/6/07, sandro.den
Hi,
this ticket http://code.djangoproject.com/ticket/2400 covers this
issue and links to discussion about it.
On 3/6/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
>
> On 06-Mar-07, at 8:55 AM, Malcolm Tredinnick wrote:
>
> >>
> >> how do i get a list of all children who are not in Sponsorsh
http://autohits.dk/?ref=1099539503
--~--~-~--~~~---~--~~
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 t
Hi Dan, thanks for posting this.
I know the latest versions of pyscripter now have remote debugging,
but haven't come around to use it yet. I'm glad to know it works with
django apps, I'll give it a go as soon as I can.
Cheers,
Filipe
On Mar 6, 5:33 am, "deaston" <[EMAIL PROTECTED]> wrote:
> Hi
coolmani wrote:
> Live Sexy girls videos,sex,chat for FREE SIGNUP
> click below for continue the sexy tour
> http://www.freewebs.com/msmani007/adultfriendfinders.htm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
coolmani wrote:
> Live Sexy girls videos,sex,chat for FREE SIGNUP
> click below for continue the sexy tour
> http://www.freewebs.com/msmani007/adultfriendfinders.htm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
coolmani wrote:
> Live Sexy girls videos,sex,chat for FREE SIGNUP
> click below for continue the sexy tour
> http://www.freewebs.com/msmani007/adultfriendfinders.htm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
dear all,
i'm starting to use django and i have what may seem to a lot of you
the stupidest question ever, though i have not been able to solve
this,.
i have to classes:
class warriors(models.Model):
username = models.CharField(maxlength=50)
class warriors_gaming(models.Model):
warrior
Hi all,
How can I authenticate in a shell? I'm playing with Managers to meke
them behave different according to the permission of the user, but I
don't know how to play with the shell as authenticated user.
Really what happens is that if I test a user that results
authenticated and I dont' und
Ilya Semenov wrote:
> What different approach could I choose? I'm writing real-life model -
> a Ticket can either have a User (who resolved it), or not (if the
> ticket has not been yet resolved). Listing all resolved Tickets with
> corresponding Users is a simple real-life task, too.
Indeed... H
Hi,
The default HTML rendering of form errors, with method as_table() at
least, is to display them above the form field. Am I the only one
concerned with this? :-)
I am struggling with CSS tricks to render this correctly, without
getting anywhere I must say.
I would rather display errors below t
On 3/6/07, samira <[EMAIL PROTECTED]> wrote:
>
> Mybe I didn't describe good. this is my project: I want to have user
> page that get member information and allow user to upload her display
> image. I don't know how I can do this,.
>
Here is a example:
1. settings.py
MEDIA_ROOT = 'media/'
2. te
David Cramer wrote:
> but I strongly encourage you to find a
> differently solution, as LEFT JOINs can be VERY costly on system
> resources.
I realize that under some circumstances, LEFT JOINs can be costly.
However, I don't hink my case is such. Let me recall the (I believe
very simple) model:
Mybe I didn't describe good. this is my project: I want to have user
page that get member information and allow user to upload her display
image. I don't know how I can do this,.
On Mar 6, 11:17 am, limodou <[EMAIL PROTECTED]> wrote:
> On 3/6/07, samira <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thanks
On 06-Mar-07, at 1:37 PM, samira wrote:
> Thanks, but I read it before, I add
> photo = models.ImageField('/images')in my models classes and
> newData = request.POST.copy()
> new_data.update(request.FILES) in views, Also for display it in
> template I add this line to it.
>
> enctype="multipart
On 3/6/07, samira <[EMAIL PROTECTED]> wrote:
>
> Thanks, but I read it before, I add
> photo = models.ImageField('/images')in my models classes and
You should read the document carefully, and you should set upload_to parameter.
> newData = request.POST.copy()
> new_data.update(request.FILES) in
Thanks, but I read it before, I add
photo = models.ImageField('/images')in my models classes and
newData = request.POST.copy()
new_data.update(request.FILES) in views, Also for display it in
template I add this line to it.
{{ form.photo }}{{ form.photo_file }}
but nothing display in my temp
86 matches
Mail list logo