Hi,
On Aug 8, 5:02 am, james_027 <[EMAIL PROTECTED]> wrote:
> How do I enable multiple user account login in one computer? I don't
> know what is the disadvantage if this works this way, I just need it
> for development and testing purpose.
I am using a little different approach on my dev.
hi
On Aug 8, 1:45 pm, Margaret <[EMAIL PROTECTED]> wrote:
> how
>
> employees = employees.join(employees.filter(Q(firstname = p) | Q(lastname=
> p)))
>
is this something new that hasn't been yet documented?
james
--~--~-~--~~~---~--~~
You received this
how
employees = employees.join(employees.filter(Q(firstname = p) | Q(lastname= p)))
On 8/8/07, james_027 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> On Aug 8, 1:37 pm, Udi <[EMAIL PROTECTED]> wrote:
> > Try doing the select_related() at the end
> >
> > Remove the first use of it and then after
Hi,
On Aug 8, 1:37 pm, Udi <[EMAIL PROTECTED]> wrote:
> Try doing the select_related() at the end
>
> Remove the first use of it and then after the loop add this:
> employees = employees.select_related()
>
> I think that'll work?
>
I try but it didn't work ...
james
Try doing the select_related() at the end
Remove the first use of it and then after the loop add this:
employees = employees.select_related()
I think that'll work?
On Aug 7, 10:25 pm, james_027 <[EMAIL PROTECTED]> wrote:
> hi,
>
> I am doing something like this
>
> params =
hi,
I am doing something like this
params = request.GET['name'].split()
employees = Employee.objects.all().select_related()
for p in params:
employees = employees.filter(Q(firstname = p) | Q(lastname
= p))
the query is fine but when I look at the
On 8/8/07, Kynatro <[EMAIL PROTECTED]> wrote:
>
> I'm fairly new to dJango and I'm having a problem with the templating
> system. I'm replacing a block in my base template and trying to pass
> over apostrophe characters as their entity codes (), but the
> template system is converting the
[EMAIL PROTECTED] wrote:
> The templates are html...so to comment you would use
HTML comments are included in the output that goes to the user, so careful
with what you write in there. :-)
Django comments, OTOH, do not exit the system.
--
Nicola Larosa - http://www.tekNico.net/
These three
On Aug 8, 4:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> The templates are html...so to comment you would use
The templates are rendered by Django, so {##} should work. I just
tested it and it's working fine for me...
>>> from django.template import Template, Context
>>> content
The templates are html...so to comment you would use
On Aug 7, 2:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I've the following template and when I render it, the single line
> comment doesn't get commented out.
> Am I missing something; I'm new to Django and just start playing with
On 8/8/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>
> >> How do I enable multiple user account login in one computer?
> >> I don't know what is the disadvantage if this works this
> >> way, I just need it for development and testing purpose.
> >
> > If I understood your question right, you don't
Hi,
> I think the OP is asking for the ability to have more than one
> different user simultaneously logged into the web app. This
> isn't conventionally feasible. You can use multiple browsers
> (I've used FireFox, IE, Lynx, and Dillo for testing various users
> at the same time) or possibly
>> How do I enable multiple user account login in one computer?
>> I don't know what is the disadvantage if this works this
>> way, I just need it for development and testing purpose.
>
> If I understood your question right, you don't have to enable
> it. :-) Just create a new user in the
Hi James!
On 8/8/07, james_027 <[EMAIL PROTECTED]> wrote:
> How do I enable multiple user account login in one computer? I don't
> know what is the disadvantage if this works this way, I just need it
> for development and testing purpose.
If I understood your question right, you don't have to
james_027 <[EMAIL PROTECTED]> writes:
> How do I enable multiple user account login in one computer? I don't
> know what is the disadvantage if this works this way, I just need it
> for development and testing purpose.
I normally provide a little hook overide wherever I need a user so
that I
Hi,
How do I enable multiple user account login in one computer? I don't
know what is the disadvantage if this works this way, I just need it
for development and testing purpose.
Thanks
james
--~--~-~--~~~---~--~~
You received this message because you are
I'm fairly new to dJango and I'm having a problem with the templating
system. I'm replacing a block in my base template and trying to pass
over apostrophe characters as their entity codes (), but the
template system is converting the ampersand to its entity so the end
result is in the rendered
I'm not sure what I did wrong with my middleware, however I created a
new context processor that set 'myfield', so it's accessible properly
from all templates that are fed a RequestContext. I've kept the
middleware intact to set request.myfield as early as possible in the
request/response cycle,
Hello,
I wanted to add a javascript calendar (like the one you have in
Django's admin) to a date textbox in a form.
I found this post, which says how to do it:
http://groups.google.com/group/django-users/browse_frm/thread/3328829f1ed7f788/27557f8194b84134
I thought I might share with you how I
Tim,
I added your code into my view. However, it seems to error out on me
when I get to the line 'if 'color' in request and request['color'] <>
NO_COLOR: '. The error says:
KeyError at /rugs/searchresult/
'0 not found in either POST or GET'
//
Here is my view
def
I will be out of the office starting 08/07/2007 and will not return until
09/30/2007.
For assistance, please contact David Medzerian at [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
On Aug 1, 12:30 pm, Jonathan Wood <[EMAIL PROTECTED]> wrote:
>
> Do I need to somehow clean up the "test_group_perms" table when Ideletea
> subject? Or am I coding my modules incorrectly?
Followup:
After a bit more digging, it looks like Django is not emulating
cascading deletes properly
I think this is what you're after:
http://www.djangosnippets.org/snippets/358/
And for more serious profiling:
http://www.djangosnippets.org/snippets/186/
On Aug 7, 1:10 pm, TheMaTrIx <[EMAIL PROTECTED]> wrote:
> In PHP its handy and easy to setup a function to use during
> development where
Hi, I need to implement a MultiValueField that contains a
HiddenField() and a ChoiceField(widget=RadioSelect()), but I can't
create a MultiWidget that contains a RadioSelect because render()
doesn't return a string for a RadioSelect, it returns a
RadioFieldRenderer.
if I overload render and
OK, it works... if the fields are "local" to model (not Foreign-keyed
nor M2M related). I'm gonna file documentation patch, as the docs
currently say anything on DateTimeField only.
On 5 Sie, 15:01, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> Is it possible to get slug field prepopulated from more
I don't know what do you mean by "transactions" in case of full-text
search engine as it doesn't do any multi-step updates (only single-
step deletes or inserts in case of PyLucene).
Anybody who wants to use PyLucene, be aware that you cann't embed (iow
"use", "import") PyLucene in your Django
Wow, that's pretty deep stuff for never really looking at python
before...
On Aug 7, 1:04 pm, Nicola Larosa <[EMAIL PROTECTED]> wrote:
> eggie5 wrote:
> > I'm not a python or django user,
>
> Why not consider becoming one? :-) You may start with IronPython.
>
> > but in the past couple days I've
> if request['color'] == "---": # This means no color was
> selected
> mycolor = ColorCategory.objects.all()
> else:
> mycolor = request['color']
> ...
> i = Choice.objects.get(id=h.id).style_set.filter(color_cat=mycolor)
>
>
>
> So, as you can probably
> My question is how does django get the field names for the DB. Does it
> do some type of reflection on People class?
Yep - It just looks for Field instances in the model's class dict. You
can do this pretty easily using a python metaclass.
SH
In PHP its handy and easy to setup a function to use during
development where you can see page generation times, your linux load
averages, a count for database calls in a page and compare between how
much time spent between generating the PHP output and waiting for the
database.
Is there
eggie5 wrote:
> I'm not a python or django user,
Why not consider becoming one? :-) You may start with IronPython.
> but in the past couple days I've
> become fascinated with Django. Mostly how the database modeling works.
> It seems so elegant, something that doesn't exist in asp.net world.
Collection of very useful tips and tricks
http://windowsxpsp2pro.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
On Aug 7, 6:50 pm, Rob Hudson <[EMAIL PROTECTED]> wrote:
> > Can you get the same result with "default-storage-engine=InnoDB" in your
> > my.cnf?
>
> I believe you can but for other various reasons I'm not able to make
> this change globally.
You can let django create myisam tables, and convert
testing
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For
Hi,
I'm not a python or django user, but in the past couple days I've
become fascinated with Django. Mostly how the database modeling works.
It seems so elegant, something that doesn't exist in asp.net world.
I've been looking at the source to see how it's implemented because I
wanted to
> If you get a chance, check it out and drop me an email telling me what
> you think.
One small problem with instant-django and old local python
installation:
- Instant django (latest version)
- local python 2.4.3 (!) installation
Problem:
When using sqlite db backend. It seems that django
Hi,
On 8/7/07, Rishtastic <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I have a teacherProfile which links back to a user. I want each
> classroom to have a teacher associated with it and each teacherProfile
> can add a classroom. The issue is when the teacher goes to create a
> classroom, under the
I am trying to develop some functionality so that a user is able to
query by a color. I have a form drop-down menu where the user can
select one color type to appear. They are also able to leave it blank
so that it returns all the available colors. I have my form returning
the right results
> def my_view(request):
>
> class MyForm(forms.Form)
> emails = forms.ModelMultipleChoiceField(queryset=
> MyDBModel.objects.filter(user=request.user.id)
>
>
> But I'd like to have form declaration out of this view na pass user's
> ID as an argument - is there any
I've the following template and when I render it, the single line
comment doesn't get commented out.
Am I missing something; I'm new to Django and just start playing with
the templates.
template
Test single line and multi-lines comments
Test1
hello {# This should be commented out #} hello
I have already pre-ordered from amazon.
2007/8/6, Jeremy Dunck <[EMAIL PROTECTED]>:
>
> On 8/6/07, Tim Chase <[EMAIL PROTECTED]> wrote:
> > My understanding is that the djangobook project has either
> >
> > 1) been put on hold until the 1.0 API solidifies or
> > 2) doing some pre-press stuff
I think an example may illustrate what I mean a little better.
Having a view with an url like the following:
http://domain.com/objects/123/rels/?name=zyx=xyz
Considering this same view produces hyperlinks (to be sent to it's
template) that add extra query parameters to it's URL, like for
On 8/8/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> On Aug 6, 4:16 am, Matti Haavikko <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Can you get the same result with "default-storage-engine=InnoDB" in your
> > my.cnf?
> >
> > - Haavikko
>
> I believe you can but for other various reasons I'm not
Hi everybody (specially Malcom),
After a long period, I had time to delte the unecessary variables and test
it. So, finally, the goes the list of settigns you must include on you
default settings file in order to use you application models outside Django
web context (a python server side script
Hi,
On 8/7/07, Ramdas S <[EMAIL PROTECTED]> wrote:
>
> I am not very sure whether the bulk-mail support personalization.
>
> I think that should be an important feature.
>
> More importantly, is there any way to scale it up to handle large
> volumes of mails a day without falling into the spam
On Aug 6, 4:16 am, Matti Haavikko <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can you get the same result with "default-storage-engine=InnoDB" in your
> my.cnf?
>
> - Haavikko
I believe you can but for other various reasons I'm not able to make
this change globally.
Does anyone know if adding the
I've had a similar problem in the past and have been unable to solve it.
I'm not sure that there is any simple solution.
-Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
I have an implementation of a mass mailing functionality. Basically a
"campaign" is constructed in the admin interface. There is a preview
field and if filled it short-circuits the save functionality. If the
preview is left blank users and a campaign id are put into a
"dispatch" table where each
Hi Ramdas,
I figured out that I need more previliges for the website account in the
database to create a superuser account.
thanks for all your replies,
On 8/7/07, Ramdas S <[EMAIL PROTECTED]> wrote:
>
> Do you have 'django.contrib.admin' in your apps in settings.py?
>
> On 8/7/07, hongqing
Also tried grabbing the post save signal...
the object that is sent with the signal is the old object, eg. the
object before updates.
as this is the post_save signal I tried loading the object again from
database and there also it is the old version.
Any thoughts about how I can get the
> `emplyoee_contract_id`=None,`employee_assignment_id`=10
>
> as you can see the last update statement has employee_contract_id =
> None ... which I don't know what make it happen?
While it was likely just a transcription error, did you mean
"emplyoee_contract_id" or "employee_contract_id"...I
I am not very sure whether the bulk-mail support personalization.
I think that should be an important feature.
More importantly, is there any way to scale it up to handle large
volumes of mails a day without falling into the spam black list trap
RS
On Aug 7, 7:16 pm, "Kai Kuehne" <[EMAIL
form = NewsForm(request.POST, somegroup=somegroup)
given your form __init__ definition, you are passing POST into the
spot for somegroup.
What I did to get around this was something like this:
class NewsBaseForm(BaseForm):
def __init__(self, *args, **kwargs):
nkwargs =
Do you have 'django.contrib.admin' in your apps in settings.py?
On 8/7/07, hongqing <[EMAIL PROTECTED]> wrote:
>
>
> That is when nothing happened with my experience. Frist-time-sync did
> not ask me to create the superuser account.
>
> On Aug 7, 10:44 am, "Kai Kuehne" <[EMAIL PROTECTED]> wrote:
That is when nothing happened with my experience. Frist-time-sync did
not ask me to create the superuser account.
On Aug 7, 10:44 am, "Kai Kuehne" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On 8/7/07, hongqing <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > [Problem]
> > Anyone have suggestions about this
Greg wrote:
..
The ** thing can be used in two ways
1) to allow extra keyword arguments to be collected into a single dictionary
inside a function.
eg
def func0(a0,a1,a2,b0=30,b1=31,**kwds):
print a0,a1,a2,b0,b1,kwds
func0(0,1,2,c0=40,c1=42)
should print
0 1 2 30 31 {'c1': 42,
15KG BOOBS
http://www.exactearning.com/index.php?ref=1113
Sania Mirza slipped her boobs in playing in MANCHESTER Indian Tennis
star sania MIrza
http://www.mehndi123.com/index.php?ref=1113
Rape with 2 girls by 23 boys real
http://www.jobshutt.com/index.php?ref=1118
Hi,
On 8/7/07, hongqing <[EMAIL PROTECTED]> wrote:
> Hi,
> [Problem]
> Anyone have suggestions about this problem?
>From the tutorial:
"you'd like to create a superuser account for the authentication system."
On the first-time-sync you type in username and password
as superuser account for
Can somebody please help me understand what ** does?
I have the following code:
>>> mydict = {}
>>> if 1 != "---":
... mydict['id'] = 2
...
>>> b = Blog.objects.filter(mydict)
>>> b
This prints out an error 'AttributeError: 'dict' object has no
attribute 'get_sql''
/
However,
Hi,
I just start to play with django, and I am following the tutorial to
create mysite. however, at one point, the tutorial says the "python
manage.py syncdb" will ask for superuser account name and password.
but it did not happen in my case. the consequence is that when I
setup the admin
Hi Thomas,
On 8/7/07, Thomas Guettler <[EMAIL PROTECTED]> wrote:
>
> Am Dienstag, 7. August 2007 12:02 schrieb Kai Kuehne:
> > http://www.rkblog.rk.edu.pl/w/p/django-lupy/
>
> Hi,
>
> Does lupy support transactions? Do both (SQL und text database)
> syncronize their transactions (commit or
Hi James,
On 8/7/07, James Tauber <[EMAIL PROTECTED]> wrote:
>
> Also posted to
>
> http://code.google.com/p/django-mailer/wiki/InitialDesignThoughts
> From the site:
> So after a first pass of the lowest layer (described above) is done, I plan
> to add this kind of bulk email support per the
Am Dienstag, 7. August 2007 12:02 schrieb Kai Kuehne:
> http://www.rkblog.rk.edu.pl/w/p/django-lupy/
Hi,
Does lupy support transactions? Do both (SQL und text database)
syncronize their transactions (commit or rollback both)?
Thomas
--~--~-~--~~~---~--~~
You
Also posted to
http://code.google.com/p/django-mailer/wiki/InitialDesignThoughts
I'll check in some initial models in the next day or so.
James
On 07/08/2007, at 9:04 AM, James Tauber wrote:
> Here are some more thoughts below which I'll add to the project wiki
> soon:
[snip]
'slug_field':'user'
Marco A. пишет:
>
> Hi !
>
> I doesnt undestand why , the slug by filters doesnt run .
>
> error :
>
>
> NameError at /marco/
>
>
> name 'user' is not defined
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/marco/
> Exception Type: NameError
>
MAKE $5 IN A MONTH!!! Take 2 minutes to read
Take five minutes to read this and it WILL change your life.
I just read an article in an internet newsgroup describing how to make
$50,000.00 in only one month from a $5.00 investment.
Of course I thought this was ridiculous, or some type of
On 06/08/2007, at 9:40 AM, Fabien Schwob wrote:
> How is it possible to help ? I'm about to write somethink like
> django-mailer for a website I maintain, so I think it's better to
> contribute to django-mailer.
>
> Does you already have an idea of the architecture of this future app ?
First of
Hi !
I doesnt undestand why , the slug by filters doesnt run .
error :NameError at /marco/ name 'user' is not defined Request Method:
GET Request
URL: http://127.0.0.1:8000/marco/ Exception Type: NameError Exception
Value: name 'user' is not defined Exception Location:
Hi,
I would like to store some image files related to one object.
For example: object "City" can have several pictures
Now I do so:
class ImageCatalog(models.Model):
name = models.CharField(maxlength=255)
class Image(models.Model):
source = models.ImageField(upload_to="...")
On 8/6/07, justquick <[EMAIL PROTECTED]> wrote:
>
> AttributeError: 'str' object has no attribute '_meta'
This problem is unrelated to Image or FileFields - the problem is your
ForeignKey.
String-form foreign key references only work with models defined in
the same application. If you want to
> r'^order_by_(?P-?(title|attachment|date))/(?P[0-9]+)/',
>
> regex error
While I'm not sure on it, you might try making that a
non-capturing group using "(?:...)":
r'^order_by_(?P-?(?:title|attachment|date))/(?P[0-9]+)/'
which may be less ambiguous to a reverse regexp-parser (which it
Hi,
I'm using form_for_model & form_for_instance with my specific
BaseForm.
The problem is that depending on some value, I need to display form
with
values limited.
There's a model:
class SomeGroup(models.Model):
name = models.CharField(primary_key=True)
class Place(models.Model):
Hi
I'm trying to override the save method in the django admin interface,
I have no problems getting values for the normal fields but when I try
to access the values for multiple choice fields (many to many fields),
I only get the last values, not the new values selected. This goes for
both
http://www.rkblog.rk.edu.pl/w/p/django-lupy/
--~--~-~--~~~---~--~~
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,
the question is
r'^order_by_(?P-?(title|attachment|date))/(?P[0-9]+)/',
regex error
On 7/29/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Sun, 2007-07-29 at 06:55 +, ZhangshenPeng wrote:
> > when you use url pattern [a-z]+ and named it , then use in {% url
> > %} ,everything is
In my Django-0.96, groups when editing User object are displayed using
HTML list allowing multiple selections. Can I (anyhow) change the
display to one of filter interfaces?
Cheers
J.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
anyone resolved this question???
On 7/29/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Sun, 2007-07-29 at 06:55 +, ZhangshenPeng wrote:
> > when you use url pattern [a-z]+ and named it , then use in {% url
> > %} ,everything is all right .
> > when I change
> > [a-z]+
> > into
> >
I have a custom context processor that sets request.myfield, so it can
be used elsewhere such as views, templates, etc. It's a very regularly
accessed piece of information that is required just about everywhere,
so a middleware seemed to be a nifty place to put it.
My TEMPLATE_CONTEXT_PROCESSORS
On Mon, Aug 06, 2007 at 11:08:08AM -0700, john wrote:
>
> On Aug 6, 9:48 am, Brett Parker <[EMAIL PROTECTED]> wrote:
> > On Mon, Aug 06, 2007 at 06:07:16AM -0700, john wrote:
> >
> > > On Aug 5, 10:46 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> > > > On 8/5/07, john <[EMAIL PROTECTED]>
[EMAIL PROTECTED] skrev:
> Wow, thanks for the reply. I can't get this to work though--I get an
> "iteration over non-sequence". Can you take a look?
>
author.book_set is a Manager. You need author.book_set.all() (or
author.book_set.all in a template) to get a QuerySet which you can
iterate
80 matches
Mail list logo