hi
iam new to django. i just installed the Django. can any one
help me in setting the environment variables .
actually i put a path like: C:\Python25\Lib\site-packages\django\ and
site-packages\bin\django-admin.py
but for both types iam unable to import templates.
whenever i try this line
If you're using Firefox on Windows, try this:
http://weblogs.asp.net/dwahlin/archive/2007/06/17/fixing-firefox-slowness-with-localhost-on-vista.aspx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group
Thanks Karen!
alex
On Jun 2, 5:18 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 2, 2008 at 3:33 AM, Alexandre Parenteau <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I'm a newbie with Django, and I'm having trouble accessing django
> > database outside the web server.
>
I'm struggling to understand the following:
http://dpaste.com/54745/
It's a legacy database that's had the data imported with a variety of
tools - not all of them very well behaved when it comes to character
encoding. The offending character is a UK pound sign (163 in unicode
and latin1 I believe
Hi Russ,
Do you mean you can define a custom forms and get it to appear as the
default change form in admin? Is there currently any documentation on
this?
There seems to be no end to delights you can get from newforms-
admin ;)
AndyB
On Jun 4, 7:33 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
Myles Braithwaite wrote:
> I have a patch for version 0.2.1 to get it working with django trunk.
>
> http://media.mylesbraithwaite.com/uploads/files/2008-05-29/django-tagging-0.2.1_fix_for_django_trunk.patch
>
> ---
> *Myles Braithwaite*
> [EMAIL PROTECTED]
>
> Please consider the trees before p
Hi,
I have an website and I would like to use Django admin app for
modifing my model objects.
Django admin app is out of the box providing C(R)UD actions for me.
But R (Read) action is implemented as list. You can see the list of
your objects and If you click on one the item in the list you will
It is my understanding that the delete method you are calling is a
QuerySet method, not a model method, and thus there is nothing
overriding it. I'm sure that if you did this:
for x in xxRaid.objects.all():
x.delete()
Then your method will be called as desired. The overrides are for the
DB
The original code used a loop as you illustrated for the delete.
Although I no longer have the original code, the annotated traces (see
below) show the delete code in xx_xxraid was NOT invoked. This
strikes me as at least a deficiency if not a bug.
initializexxNode
todo: tell SS delete xxno
On Wed, Jun 4, 2008 at 5:27 PM, AndyB <[EMAIL PROTECTED]> wrote:
>
> Hi Russ,
>
> Do you mean you can define a custom forms and get it to appear as the
> default change form in admin? Is there currently any documentation on
> this?
Thats the idea. The move to newforms is significant, but the chan
Hello,
I would recommend you to look at : databrowse
http://www.djangoproject.com/documentation/databrowse/
Here it is a short description extracted from the django
documentation:
"""
Databrowse is a Django application that lets you browse your data.
As the Django admin dynamically creates an adm
I'm trying to syncdb in a project and am getting the following error
running python 2.5.1 with django 0.96.
Anyone have a clue why? Need more info, let me know.
greg-3:examples greg$ python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 16, in
execute_manager(s
On Jun 4, 1:30 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> > I am using setattr(self, fieldname, value) to set a value on a field
> > for which i do not know anything but the name. Is that common django
> > idiom, or are there better ways to do this?
> This isn't a Django-specific f
Never mind. Found my issue. Required a good pot of coffee.
On Wed, Jun 4, 2008 at 7:52 AM, greg.newman <[EMAIL PROTECTED]>
wrote:
> I'm trying to syncdb in a project and am getting the following error
> running python 2.5.1 with django 0.96.
> Anyone have a clue why? Need more info, let me kno
if i have a site under example.com domain with structure:
www.example.com - public site - django project "portal"
admin.example.com - administration site - django project "admin"
shop.example.com - satchmo integration attempt - django project "shop"
... services, rss, and anything else you can thi
Hello people,
Being able to work with Django is very helpful to me. However, I am
unsure whether I can create a form out of a database model and then
customize that form. Using widgets to increase the textarea to 40
would be great! But after reading the documentation I am convinced I
cannot do t
HOT BOOBS -
http://tinyurl.com/5ctysp
CAMERON DIAZ - http://tinyurl.com/47qj39
MONICA BELLUCI - http://tinyurl.com/3thzcl
CHRISTINA RICCI - http://tinyurl.com/3hjlgo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
fast, easy to learn. very cool features.
future of web application programming.
--~--~-~--~~~---~--~~
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.co
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Peter Rowell wrote:
> class Varietal(models.Model):
> name = models.CharField()
>
> class Vineyard(models.Model):
> name = models.CharField()
> varietals = models.ManyToManyField(Varietal)
>
> This site is devoted almost exclusively to Pinot N
Hi all,
I've read http://www.djangoproject.com/documentation/models/generic_relations/
.
How can I share a tag between Animal and Vegetables?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
I'm using django.contrib.auth.views for user management like login
wrapped in my own views for example:
@login_required
def password_change(request):
return django.contrib.auth.views.password_change(request,
template_name='userpanel/password_change.html')
But my template context processo
On Wed, Jun 4, 2008 at 5:23 AM, AndyB <[EMAIL PROTECTED]> wrote:
>
> I'm struggling to understand the following:
> http://dpaste.com/54745/
>
> It's a legacy database that's had the data imported with a variety of
> tools - not all of them very well behaved when it comes to character
> encoding. T
On Wed, Jun 4, 2008 at 6:37 AM, puff <[EMAIL PROTECTED]> wrote:
>
> The original code used a loop as you illustrated for the delete.
> Although I no longer have the original code, the annotated traces (see
> below) show the delete code in xx_xxraid was NOT invoked. This
> strikes me as at least a
Sigh. Apparently I made that change in February when I was having a
different trauma with unicode.
I think I now just get the fear when I see a unicode error and my
brain switches off to prevent damage.
Thanks Karen :(
On Jun 4, 3:26 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Wed, Jun 4
Hi,
I am having a problem getting the form wizard to load a different
template for each form. I used the example provided where they name
their templates template_0.html, template_1.html ... and so then
override the function like this:
def get_template(self, step):
return 'vlis/product
from:http://www.djangoproject.com/documentation/newforms/#widgets
class CommentForm(forms.Form):
name = forms.CharField(
widget=forms.TextInput(attrs={'class':'special'}))
url = forms.URLField()
comment = forms.CharField(
widget=forms.TextInput(attrs={'si
What you want to do is perfectly doable. If (for example) you want the
street field to show up as a textarea with 40 columns in your form, you
would put something like this in your forms.py:
class PersonForm(ModelForm):
street = forms.CharField(widget = forms.TextArea(attrs = {"cols":40}))
c
> How about writing your own constructor that takes an argument of type
> and has a default value assigned there?
I guess I don't understand where this constructor lives in the food
chain. It can't exist prior to the first save() of the object because
we don't have the id before that. I tried put
I am running into some weirdness in an app im writing and so I thought
I'd try to see how the basics of URL strings are handled.
So I wrote a one line hello world app, and wanted to see how the dev
server output it's results. I am still getting my feet wet with the
whole web / http / HTML thing,
Unless I am really mistaken, I am pretty sure this is a bug. The
"self.step" variable in "wizard.py" is never being updated after the
forms are submitted. These are two possible fixes I found:
1. In the method "def __call__(self, request, *args, **kwargs) :"
update the self.step variable after
Best Video SEX!
http://rozrywka.yeba.pl/show.php?id=2737
--~--~-~--~~~---~--~~
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 thi
Best Video SEX!
http://rozrywka.yeba.pl/show.php?id=2737
--~--~-~--~~~---~--~~
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 thi
Also, make sure, if you're using Firefox, make sure none of your
extensions (if you have any) are causing the slowness. This is often
the case.
Dana
On Jun 4, 1:04 am, morlandi <[EMAIL PROTECTED]> wrote:
> If you're using Firefox on Windows, try
> this:http://weblogs.asp.net/dwahlin/archive/200
Well, in investigating this further, I think I found the 'issue'.
There are a few threads with similar issues, where the pattern in
urls.py doesn't capture the trailing slash, and I guess by default,
django figures it will 'adjust' the URL and redirect to the 'correct'
URL, hence the initial 301,
Karen,
I think I found my problem, and added a new post, maybe you can help?
http://groups.google.com/group/django-users/browse_thread/thread/fc47edb1b9f8ec8f#
Thanks again, you've really helped me see this through
John
On Jun 2, 1:01 pm, John M <[EMAIL PROTECTED]> wrote:
> Karen,
>
> Thanks
Hi all,
A Django site I am developing will allow students to enroll in
courses. A user is a student if a member of the 'students' group. The
Couse model has a many-to-many relation with User. So far so good...
When a course administrator wants to add students to a course, the
widget shows the us
This is because Django will redirect you to a page with an appended
slash to your url if it's not already there -- how you have
discovered.
To understand why this is done you should read the following section
in django's documentation:
http://www.djangoproject.com/documentation/middleware/#django
Hi,
On Wed, 2008-06-04 at 09:30 -0700, John M wrote:
> I am running into some weirdness in an app im writing and so I thought
> I'd try to see how the basics of URL strings are handled.
>
> So I wrote a one line hello world app, and wanted to see how the dev
> server output it's results. I am s
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Peter Rowell wrote:
> I guess I don't understand where this constructor lives in the food
> chain. It can't exist prior to the first save() of the object because
> we don't have the id before that. I tried putting it *in* the save()
> and it did nothi
Yes, I understand that, and I think it's a good thing, but when it
redirects, it mangles the parameters, would you agree?
J
On Jun 4, 10:35 am, Gregor Müllegger <[EMAIL PROTECTED]> wrote:
> This is because Django will redirect you to a page with an appended
> slash to your url if it's not alread
A quick newbie question,
is there any way that can create a default instance (a pre-specified
instance) in the database once the model is created. In other words,
when we first run the syncdb(or set up the website), an pre-defined
instance is created.
For example, we have a Book model,
class Bo
http://www.djangoproject.com/documentation/models/fixtures/
What you are looking for is an initial_data fixture. You need to serialize
the default instance of the model you want as JSON and save it in
initial_data.json and then it should prepopulate when you run syncdb.
On Wed, Jun 4, 2008 at 2:3
Thanks, that was it.
-Chris
On Jun 3, 5:44 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 3, 2008 at 5:15 PM, Chris Czub <[EMAIL PROTECTED]> wrote:
> > # URL that handles the media served from MEDIA_ROOT.
> > # Example: "http://media.lawrence.com";
> > MEDIA_URL = 'http://www.mysite
Thanks Eric that did the job
On Jun 3, 1:50 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> Yes, that was it. ModelForms are nice because you don't have to
> specify the fields to put in the form, it does that automatically.
> However, as soon as you want to customize the widgets being used for
Hi Guys,
I needed a work around to add custom css in the default(oldforms)
password change form
that I am using . How to go about it ?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
> perhaps having an __init__ function in your Vineyard class could allow
> you to set pinot noir as the default, unless it is passed another type
> of wine.
Conceptually, what you said is correct, but TDIITD (The Devil Is In
The Details).
I believe that the "correct" way to do this is to set def
Hi all,
Newbie to Django & hit a brick wall. I'm trying to run syncdb on my
models and it bails out on a couple of fields that I have where the
issue is maximum key lengths in MySQL.
First field is CharField, unique, max_length=500
Second is TextField, unique
In both cases syncdb fails with a M
I am trying to implement an ajax-widget with JQuery to handle simple
and multiple select that retrives options that match what the user has
typed.
Is there something of this all ready done out there? I'd like to see it.
Thanks,
--
Juanjo Conti
--~--~-~--~~~---~--~-
On Wed, Jun 4, 2008 at 2:03 PM, John M <[EMAIL PROTECTED]> wrote:
> Yes, I understand that, and I think it's a good thing, but when it
> redirects, it mangles the parameters, would you agree?
>
Yes, I think that's a bug in Django. The code that is doing the
APPEND_SLASH handling tries to use req
Well, thank God you took a look at the code and agreed on my
findings. I'll just adjust my urls.py for now.
Should I submit a bug report? (it'd be my first :) )
Thanks again for your time on this, I'm glad it was a bug and not my
mis-standing of django or the way this all works together. Now
An interesting variation I have encountered. I have custom managers
for my model classes in models.py. If I add doctests to the custom
manager methods, they run. But if I then add doctests to any model
methods, none of the doctests in models.py run -- neither the doctests
for the custom manager me
Hi,I've started using Django recently and really enjoyed it until I ran into
a problem that I cannot find a solution on the net. Really hope someone can
cast some light on me.
Basically I want to use a random 7 digit string as the primary key of table
Foo, because this id is system generated I don'
For the admin app?
On Wed, Jun 4, 2008 at 4:08 PM, Mayank Dhingra <[EMAIL PROTECTED]> wrote:
>
> Hi Guys,
>
> I needed a work around to add custom css in the default(oldforms)
> password change form
> that I am using . How to go about it ?
>
> Thanks
> >
>
--
Juanjo Conti
--~--~-~--~
On Jun 4, 5:42 pm, "Cliff Liang Xuan" <[EMAIL PROTECTED]> wrote:
> Basically I want to use a random 7 digit string as the primary key of table
> Foo, because this id is system generated I don't want to show it in the
> admin interface. How to achieve this, please?
You should only have trusted use
Hi Yml,
I am working on a small CRM solution for our internal use. Admin
application is providing almost all the functionality I need but I
think it is a pity that you can not specify a template for reading a
model and user rights for this action out of the box.
It would be nice to have an actio
Hi jonknee
Thanks a lot for your reply. I'll give it a try now.
By the way, I'm happy with incrementing IDs, however, it will cause
conflicts when I need to import data from another database.
Thanks
Cliff
On Jun 4, 10:50 pm, jonknee <[EMAIL PROTECTED]> wrote:
> On Jun 4, 5:42 pm, "Cliff Liang Xua
Ali --
I'm doing a lot of adaptions in newforms-admin, take a look at the
ModelAdmin class and it's __call__ method.
-- erik
Am 04.06.2008 um 23:54 schrieb Ali Sogukpinar:
> I am working on a small CRM solution for our internal use. Admin
> application is providing almost all the functional
I'm having some difficulty with the admin interface that has me
stumped and could use a clue or two.
I've a table that looks like this:
class Destination(models.Model):
name = models.CharField( 'Name', max_length = LENGTH_NAMES_LONG,
primary_key = True,
help_text = 'Destinati
I am .Net developer looking to switch over to Python.
I have started looking at Django and was wondering if there is a
widget equivalent to ASP.Net's GridView in terms of richness of
functionality.
If someone knows of any and has some examples of its use I would
greatly appreciate it.
--~--~
You need to set an environment variable DJANGO_SETTINGS_MODULE that
points to your settings.py. Look up the documentation on settings for
more detail. This isn't necessary when running the development
server, IIRC, but becomes necessary when running under
Apache/mod_python.
On 6/4/08, Sandy <
Free Mp3 Our Wav Tones , 3gp Mobile Videos Songs ( Newly Added )
Free The Corss Video
Free music,movie,divx
Free Music Video
Free Your entertainment store is here! Watch the fresh & latest
videos
***
http://www.freewebs.com/mp3-information/
*
Hi there. Long-time PHP developer now getting into Python and Django.
I'm using the latest version of Django from SVN and are building a query
that does the following:
Give me all the games where
homeTeam = searchTeam OR awayTeam = searchTeam
AND game_date is between start_date and end_date
ORDER
You can use Q objects to preform OR queries. So it would look like
this:
from django.db.models import Q
games = Game.objects.filter(Q(home_team=searchTeam) |
Q(away_team=searchTeam)).filter(game_date__range(date_form.cleaned_data['startDate'],
date_form.cleaned_data['endData'])).order_by('games_
thanks very much Chris.
I googled and also find some related articles.
http://www.djangoproject.com/documentation/0.96/models/fixtures/
http://code.djangoproject.com/wiki/Fixtures
However, when I tried to reset and syncdb, I always had error
messages.
1.$ python manage.py reset myapp
Type 'yes
EARN$1000-$25000 per week
SIMPLE ONLINE SURVEY
WORK AT JUST 2 HOURS ONLY
I EARN DAILY AROUND $350
CREATE FREE ACCOUNT START YOUR EARNINGS
***
http://www.AWSurveys.com/HomeMain.cfm?RefID=souravudaya
http://www.AWSurveys.com/
65 matches
Mail list logo