Hi!
I am writing an application - a kind of article manager. I defined my model
this way:
class Section(models.Model):
#id = models.IntegerField(unique=True)
section = models.CharField(max_length=200, unique=True)
name = models.CharField(max_length=200, blank = True)
def __unicod
http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey
class Section(Model):
...
parent = models.ForeignKey('self')
plus some code to build the string representing the path.
On Apr 21, 1:30 pm, Oleg Oltar wrote:
> Hi!
> I am writing an application - a kind of article manage
Can you please provide a simple example?
2009/4/21 Andy Mikhailenko
>
> http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey
>
> class Section(Model):
>...
>parent = models.ForeignKey('self')
>
> plus some code to build the string representing the path.
>
> On Apr 21, 1:30
Nothing like that I have done my home work and gone through what you
are suggesting.
I want to understand any practical implications or limitations of the
two.
>>>The two applications mentioned are wildly,different and for different
>>>purposes
I seems to not agree with you on this; can you plea
How we use Django in Linux?
--~--~-~--~~~---~--~~
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
djan
Hi django users,
I am trying to embed an applet in html generated by django views. Its
a simple example. I have correctly configured static serve and it is
working properly.
I have a view "testrun"
http://localhost:8000/site_media/simple.jar";
width="352" height="288">
There ar
In ubuntu, you'll need to install mysqldb package for python:
sudo apt-get install python-mysqldb
test by entering python interactive mode and importing the package
without errors:
$ python
$ import MySQLdb
case matters.
On Mar 10, 5:09 am, Karen Tracey wrote:
> On Tue, Mar 10, 2009 at 1:54
On Tuesday 21 April 2009 14:44:27 Vishwajeet wrote:
> Nothing like that I have done my home work and gone through what you
> are suggesting.
> I want to understand any practical implications or limitations of the
> two.
try both and choose the one you want. If you later find you have made the wro
Do you create user and grant rights to him in MySQL?
On Apr 21, 1:58 pm, 83nini <83n...@gmail.com> wrote:
> Hi guys,
>
> I'm new to django and trying to learn. I'm trying to connect django to
> mysql database which i've created, so what i did is that i modified
> the settings.py file to the follo
Yes, i've created a user and granted the user some rights.
On 21 Apr, 12:48, Anatoliy wrote:
> Do you create user and grant rights to him in MySQL?
>
> On Apr 21, 1:58 pm, 83nini <83n...@gmail.com> wrote:
>
>
>
> > Hi guys,
>
> > I'm new to django and trying to learn. I'm trying to connect djang
section = Section.objects.create(section=u"Food", parent=None, ...)
subsection = Section.objects.create(section=u"Cheese", parent =
section, ...)
brie = Article.objects.create(title=u"Best cheese in The World",
section = subsection, ...)
On Apr 21, 12:50 pm, Oleg Oltar wrote:
> Can you please p
Try run this in MySQL:
GRANT ALL ON something TO myusern...@localhost IDENTIFIED BY
"somepassword"
On Apr 21, 2:52 pm, 83nini <83n...@gmail.com> wrote:
> Yes, i've created a user and granted the user some rights.
>
> On 21 Apr, 12:48, Anatoliy wrote:
>
> > Do you create user and grant rights to
You must create view to delete objects.
Or you can use generic delete view (http://docs.djangoproject.com/en/
dev/ref/generic-views/#django-views-generic-create-update-delete-
object).
Add to your routes.py:
(r'^delete/(?P[0-9]+)$',
'django.views.generic.create_update.delete_object', {'model': M
Hi,
What's the databrowse roadmap? I'm wondering how to restric the access
to different users, depending on the Group they belong. I don't want
my "plain" users to access to this information, but only some of them
and only to some of the models.
Any idea?
--~--~-~--~~~---
On Tuesday 21 April 2009 16:43:09 Oli Warner wrote:
> And I was going to say that the probable benefit of Django (over Webpy) was
> you get larger, better community with better documentation and faster
> support ... but that point is slightly tarnished by the current replies. I
> guess the bigger
I can't speak for Webpy (having never used it) but I can tell you I'd have
Django's babies if I could. I guess I do and they're websites...
...
Anyway. I wanted to apologise for the frankly unneccessary and otherwise
useless comments you've had so far. Framework evaluation is a tough thing
and I
Hello everybody
well i am using haystacksearch now Everything is running fine
but in search section, while submitting the search query
i am receiving the following error ie:
==
KeyError at /search/
([u'django_ct_s'], {})
Request Method: GET
Request URL:http:
I have a table with an 'id' field (Primary Key). When I insert the
data using admin interface it is asking me for the value of the
primary key field. But I want it to be filled automatically. Is there
a way to do it?
--~--~-~--~~~---~--~~
You received this message b
I don't want to drag the meta-conversation out but I do want to say that
when I had half-a-dozen frameworks on my shortlist (before choosing Django)
either of those two responses would have been useless. That's why I'm taking
this tact now. There are better ways of approaching a subjective question
2009/4/21 galileo
>
> How we use Django in Linux?
>
> >
>
http://docs.djangoproject.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@googl
Try to remove id field from model description. Django handles it
automatically.
On Apr 21, 3:48 pm, Vicky wrote:
> I have a table with an 'id' field (Primary Key). When I insert the
> data using admin interface it is asking me for the value of the
> primary key field. But I want it to be filled
On Tuesday 21 April 2009 05:07:06 am Anatoliy wrote:
> Try to remove id field from model description. Django handles it
> automatically.
>
> On Apr 21, 3:48 pm, Vicky wrote:
> > I have a table with an 'id' field (Primary Key). When I insert the
> > data using admin interface it is asking me for th
On Tue, 2009-04-21 at 02:14 -0700, Vishwajeet wrote:
> Nothing like that I have done my home work and gone through what you
> are suggesting.
> I want to understand any practical implications or limitations of the
> two.
>
> >>>The two applications mentioned are wildly,different and for different
wohooo, thanks, that worked :)
i owe you a cheesecake
On 21 Apr, 13:03, Anatoliy wrote:
> Try run this in MySQL:
>
> GRANT ALL ON something TO myusern...@localhost IDENTIFIED BY
> "somepassword"
>
> On Apr 21, 2:52 pm, 83nini <83n...@gmail.com> wrote:
>
>
>
> > Yes, i've created a user and grant
Hi guys,
I'm new to django and trying to learn. I'm trying to connect django to
mysql database which i've created, so what i did is that i modified
the settings.py file to the following:
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'something'
DATABASE_USER = 'myusername'
DATABASE_PASSWORD = 'somep
Hi all you coders outthere!
I want to search for data in my database. Thats all fine.
I just need help with quetys in urls...
I want to have link like this:
/search/q=cars
/search/q=car+red+blue
/search/q=my+search+query
The problem is that i don't know what to write inside urls.py.
What should
If you use ubuntu, it comes with python2.5. That's even easier.
Follow the installation guide:
http://docs.djangoproject.com/en/dev/intro/install/#intro-install
and the rest of documentation: tutorials... here:
http://docs.djangoproject.com/en/dev/
On Apr 21, 9:51 am, galileo wrote:
> How w
if you really wanted it like that, you could setup your url like this
(r'^search/q=(?P)', ...)
or you could just remove the q= for prettier urls and do:
(r'^search/(?P)', ...)
That will give you the variable "query" to your view, you have to
write it in your view function aswell.
read about urlc
On Apr 21, 1:25 pm, Oto Brglez wrote:
> Hi all you coders outthere!
>
> I want to search for data in my database. Thats all fine.
> I just need help with quetys in urls...
>
> I want to have link like this:
> /search/q=cars
> /search/q=car+red+blue
> /search/q=my+search+query
>
> The problem is t
Oto Brglez wrote:
> Hi all you coders outthere!
>
> I want to search for data in my database. Thats all fine.
> I just need help with quetys in urls...
>
> I want to have link like this:
> /search/q=cars
> /search/q=car+red+blue
> /search/q=my+search+query
>
> The problem is that i don't know w
I'm using Django flatpages for all the "one-off" pages on my website,
but I'd like to create a "lite" version of the site for iPhone users
(for example) which would use a different style sheet and shorten the
site menu (by missing off several of the least used menu options). If
I put a variable li
Hi!
I don't have password reset in my project and the base test suite
fails because of this. Can I somehow turn of these tests until I
decide to add password reset?
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Thanks a lot man. It worked. I just made it as AutoField :)
On Apr 21, 5:15 pm, Mike Ramirez wrote:
> On Tuesday 21 April 2009 05:07:06 am Anatoliy wrote:
>
> > Try to remove id field from model description. Django handles it
> > automatically.
>
> > On Apr 21, 3:48 pm, Vicky wrote:
> > > I h
On Mon, Apr 20, 2009 at 7:48 PM, bax...@gretschpages.com
wrote:
>
> I'm trying to manually create an object (from a signal). My problem is
> that the object has a 'sites' M2M field:
>
> class News_item(models.Model):
> ...
> sites = models.ManyToManyField(Site)
> ...
>
> but when I try to
2009/4/21 Tim Chase :
> Your urls.py should just have "^/search/$" as the URL. The
> resulting view function should then make use of the request.GET
> dictionary'ish object:
>
> def search_view(request):
> terms = [
> term.strip()
> for term in request.GET.get("q", "").split()
>
Darn,
It's really difficult to reference a child instance to a parent if the
parent already exists in database with django :-(
I tried this:
1.
user.save()
staff = Staff()
staff = user
staff.save()
--> The data is not saved to the DB :-(
2.
user.save()
staff = Staff.objects.get(id=user.id)
staf
I'm trying to work on the tutorial to create an admin site which takes
3 steps:
1. add "django.contrib.admin," to INSTALLED_APPS in the settings.py
file and make sure that :
"django.contrib.auth,"
"django.contrib.contenttypes,"
"django.contrib.sessions,"
are also there.
make sure that:
'django.mi
On Tue, 2009-04-21 at 06:02 -0700, Simon wrote:
> I'm using Django flatpages for all the "one-off" pages on my website,
> but I'd like to create a "lite" version of the site for iPhone users
> (for example) which would use a different style sheet and shorten the
> site menu (by missing off several
On Tue, Apr 21, 2009 at 9:29 AM, 83nini <83n...@gmail.com> wrote:
>
> I'm trying to work on the tutorial to create an admin site which takes
> 3 steps:
> 1. add "django.contrib.admin," to INSTALLED_APPS in the settings.py
> file and make sure that :
> "django.contrib.auth,"
> "django.contrib.conte
On Tue, Apr 21, 2009 at 1:29 PM, srini wrote:
> Exception Location: /usr/lib/python2.5/site-packages/
> Whoosh-0.1.13-
> py2.5.egg/whoosh/fields.py in name_to_number, line 339
>
That django_ct_s seems pysolr related, and you are using woosh. May be there
is a disturbing raw_query.
--~--~---
2009/4/21 Filip Gruszczyński :
>
> Hi!
>
> I don't have password reset in my project and the base test suite
> fails because of this. Can I somehow turn of these tests until I
> decide to add password reset?
Short answer - no. There is not currently any way to skip a test or
disable a test suite,
Howdy Folks,
I think there is a problem with the sequence_reset_sql method. Here
is the the problem area:
- cut here -
for f in model._meta.many_to_many:
output.append("%s setval('%s', coalesce(max(%s), 1),
max(%s) %s null) %s %s;" % \
(st
Forgot to mention that I'm running revision 10558.
--gordon
--~--~-~--~~~---~--~~
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
thanks Alex the great :)
it worked
On 21 Apr, 15:31, Alex Gaynor wrote:
> On Tue, Apr 21, 2009 at 9:29 AM, 83nini <83n...@gmail.com> wrote:
>
> > I'm trying to work on the tutorial to create an admin site which takes
> > 3 steps:
> > 1. add "django.contrib.admin," to INSTALLED_APPS in the settin
I'm attempting to get a unique list from a django sql query using the
distinct() function, but it does not seem to filter
the redundancies..
For example
I do a query for Moby Dick and it returns the query set
named results1 as...
qset= (Q(title__icontains='MOBY DICK'))
results1 = Titles
I went ahead and filed a bug report (http://code.djangoproject.com/
ticket/10881) and attached two small files that can be used to
reproduce the problem.
--gordon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
On Tue, Apr 21, 2009 at 4:55 AM, Gyanit Singh wrote:
>
> Hi django users,
>
> I am trying to embed an applet in html generated by django views. Its
> a simple example. I have correctly configured static serve and it is
> working properly.
> I have a view "testrun"
> archive="http://l
World renowned company located in the heart of Washington, DC is
looking to hire a Python/Django developer to work on website developed
on Python-based Django web application framework, Linux environment.
Developer would work on a small ridiculously talented team. The site
is very cool - interact
Even for Remote User tests? I have no intention of having remote
users, so what is the reason for putting it as a default in SVN
version? I am testing right now SVN version and I get a lot of bogus
errors, where there should be none.
Isn't there any quick and elegant way I can disable it?
W dniu
in #1 I think you meant;
user.save()
staff = Staff()
staff.user = user
staff.save()
That might work. Otherwise, I'm not sire.
Cheers,
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/4/21 Joshua Partogi
>
> Darn,
>
> It's really difficult to reference a child instanc
2009/4/21 Filip Gruszczyński :
>
> Even for Remote User tests? I have no intention of having remote
> users, so what is the reason for putting it as a default in SVN
> version? I am testing right now SVN version and I get a lot of bogus
> errors, where there should be none.
>
> Isn't there any qui
Morning, folks. I have a question about setting the "select" inputs in
a form. I have a Form object with some ChoiceFields, and I would like
the user to be able to push a button to update the list content of the
ChoiceFields. I tried assigning the new lists to my form's
ChoiceFields (in the view,
> Quick? yes. Elegant? The jury is still out. [1]Ticket8363 includes a patch
> that allow you to exclude selected tests from the suite when you ejecute
> the Django test runner runtests.py. If you can the isolate tests you want to
> skip to a specification similar to the one used to specify the te
>> I've also been told nose has similar functionality.
>
> I don't get this one. Is it some kind of a sarcastic or ironic remark
> I won't understand unless I'm native speaker?
>
Not at all
http://somethingaboutorange.com/mrl/projects/nose/
--
Ramiro Morales
http://rmorales.net
--~--~
>> I don't get this one. Is it some kind of a sarcastic or ironic remark
>> I won't understand unless I'm native speaker?
>
> Not at all
>
> http://somethingaboutorange.com/mrl/projects/nose/
Damn, and I hoped I'll advance in my sarc-fu ;-) Thanks a lot for, I
didn't know about this package and I
Looks good. Thanks :)
On 21 Apr, 14:31, Tom Evans wrote:
> On Tue, 2009-04-21 at 06:02 -0700, Simon wrote:
> > I'm using Django flatpages for all the "one-off" pages on my website,
> > but I'd like to create a "lite" version of the site for iPhone users
> > (for example) which would use a diff
On Tue, 2009-04-21 at 17:12 +0200, Filip Gruszczyński wrote:
> > Quick? yes. Elegant? The jury is still out. [1]Ticket8363 includes a patch
> > that allow you to exclude selected tests from the suite when you ejecute
> > the Django test runner runtests.py. If you can the isolate tests you want to
> http://code.google.com/p/nose-django/
Is there any python lib, that didn't get django plugin ;-)? Thanks :-)
--
Filip Gruszczyński
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
On Mon, Jan 15, 2007 at 04:02:02PM -0800, cwurld wrote:
> I was reviewing the code for two different ways of serving static
> webpages:
>
> 1) verdjnlib templatepages ( http://www.verdjn.com/wiki/TemplatePages )
>
> 2) django static pages (
> http://www.djangoproject.com/documentation/static_fil
Hi! in a new project, I have the necessity of creating new models on
the fly, and then interact with them (including writing to a new table
in the database), is there any way of doing this?
I'm guessing that with a little introspection it can be made possible,
is this true?
Greets.
--~--~--
I agree with Parveen. Have you read the tutoria?
http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01l
On Apr 17, 5:35 pm, TP wrote:
> Hi I have a HTML website and im looking to use Django-registration
> with it.
>
> I have downloaded the registration app, but cannot see how I
Hello!
In my model I have dynamically generated checkbox fields that look like this:
boxes = forms.ModelMultipleChoiceField(queryset=Box.objects.all(),
widget=forms.CheckboxSelectMultiple)
The problem is that in the web-interface I've got a long flat list of
checkboxes and it doesn't look very
I'm using fckeditor to edit some fields of my model.
Once in admin.py I added
class Media:
js = ('fckeditor/fckeditor.js',
'fckeditor/custom/impresa_legacoop_fc_it.js')
and in the second I replace the textarea "descrizione" with an fckeditor one.
Now the javascript loads also for th
you should also post this on www.djangogigs.com
On Apr 21, 7:39 am, HPL wrote:
> World renowned company located in the heart of Washington, DC is
> looking to hire a Python/Django developer to work on website developed
> on Python-based Django web application framework, Linux environment.
> D
I have a question about using Pluggable apps with Django.
My question is about best practices.
If you have pluggable apps, do you put the entire app ( e.g. django-survey
or django-ads ) into a subdirectory and then add each app individually to
the python path?
$ ls apps
django-survey django-ads
I want to have an inclusion tag that builds a menu system, which has a
default config.
default_config = [list of dicts here]
@register.inclusion_tag('_nav_leftmenu.html')
def nav_leftmenu(menu_config=default_config):
# build stuff here to display menu system
return {'menu_html': menu_h
John M wrote:
> you should also post this on www.djangogigs.com
looks like it's already there:
http://djangogigs.com/gigs/606/
:)
-tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
I'm building a tool for a client that synchs email addresses between
systems and decided to use the excellent django framework because it
gives me a quick and powerful connection to a database back-end and
the ability to provide a web front-end for the users. I'm trying to
decide if it's worth goi
You could, but as you say you would have to script it to daemonise.
If resources are what's putting you off running something like Apache, you
should know there are plenty of lightweight servers that are simple to get
up and running, even on desktop machines.
Just to state my position: I would fi
Can anyone advise me on what is the best way in the views.py code to
return an HttpResponse that simply returns the user to the previous
page they were on?
For example, let's say that multiple different pages have a button
that executes some code in views.py, but is not intended to actually
take
Can anyone advise me on what is the best way in the views.py code to
return an HttpResponse that simply returns the user to the previous
page they were on?
For example, let's say that multiple different pages have a button
that executes some code in views.py, but is not intended to actually
take
I've tried various permuations of filters and approaches in
attempting to get unique/distinct results on a django query
with postgres data to no avail. Using distinct() has no effect
on queries in the following examples...
qset= (Q(title__icontains='MOBY DICK'))
results1 = books.objects.f
Sorry for this repost. Please ignore and use previous posting of
similar name.
On Apr 21, 2:07 pm, Margie wrote:
> Can anyone advise me on what is the best way in the views.py code to
> return an HttpResponse that simply returns the user to the previous
> page they were on?
>
> For example, le
I've set up an inline cost price formset and configured the inline
form with extra = 1 and max num=1 in associated admin.py.
Problem is the inline is displaying the last two entered cost price
records... not the last one (by date) and an empty inline form for
adding a new entry which is what I'm
On Apr 21, 10:53 pm, Margie wrote:
> Can anyone advise me on what is the best way in the views.py code to
> return an HttpResponse that simply returns the user to the previous
> page they were on?
>
> For example, let's say that multiple different pages have a button
> that executes some code i
2009/4/21 Margie :
>
> Can anyone advise me on what is the best way in the views.py code to
> return an HttpResponse that simply returns the user to the previous
> page they were on?
>
> For example, let's say that multiple different pages have a button
> that executes some code in views.py, but i
Thanks. Yes, your point about ajax is a good one, and in some cases
that is what I want, but in other cases I want to reexecute the
views.py code for the current page because now it will display
something new, due to the "action" I just completed.
For example, I am listing the posts for a forum
Hello,
Is there any way to install & deploy a django application on a
1and1.comshared hosting ?
Thanks for you help.
Best regards,
--
Didine Wayde.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
To answer the question in terms of Python packaging (typically
consuming Django apps isn't going to differ from consuming any other
python package) ...
On Apr 21, 11:44 am, Bryan Wheelock wrote:
> I have a question about using Pluggable apps with Django.
>
> My question is about best practices.
On Apr 22, 7:16 am, Didine wrote:
> Hello,
>
> Is there any way to install & deploy a django application on a
> 1and1.comshared hosting ?
> Thanks for you help.
What type of plans do they offer and what are you trying to use?
There is currently a discussion going on on mod_python list about
c
I haven't used that many pluggable Django apps, but I'd say it really
depends as you go from application to application. The first step is
to decide where your pluggables will live. I like to keep pluggables
that are used by my project specific apps under %project%.apps.contrib
for clarity's sake.
On Tue, Apr 21, 2009 at 11:16:06PM +0200, Didine wrote:
> Is there any way to install & deploy a django application on a
> 1and1.comshared hosting ?
By asking this question, you seem to assume that subscribers to the
django-users list are already aware of how this service in which you
have expres
I have problem to install mod_python to 1and1 dedicated server (Apache
Portable Runtime headrer files are missing).
apache info:
Server version: Apache/2.2.3
Server built: Sep 11 2006 09:43:18
OS info : Fedora Core 6 with Plesk 8.1 (64-bit)
On Tue, Apr 21, 2009 at 3:45 PM, Phil M
I've been moving forward with the django server option and have come
across an oddity: while I can access my site on the resident machine
via http://localhost:8000, if I try to access it from another machine
on the network via http://10.0.0.66:8000 I get an error in my browser:
Failed to Connect
On 21/04/09 06:52 PM, online service wrote:
> I have problem to install mod_python to 1and1 dedicated server (Apache
> Portable Runtime headrer files are missing).
>
> apache info:
>
> Server version: Apache/2.2.3
> Server built: Sep 11 2006 09:43:18
>
> OS info : Fedora Core 6 with Pl
On Wed, Apr 22, 2009 at 8:15 AM, Kevin Audleman
wrote:
>
> I've been moving forward with the django server option and have come
> across an oddity: while I can access my site on the resident machine
> via http://localhost:8000, if I try to access it from another machine
> on the network via http:
I have a question about using the new formfield_for_dbfield with
Django 1.1 beta 1. In this example I'm trying to filter the list of
users that appears in a "speakers" field in the admin, where speakers
is
speakers = models.ManyToManyField(User)
Lacking docs, I've modeled it after the way I've
So this is related to my original post... Malcolm was right, the
problem was related to the connection being closed prematurely.
I am having the same problem as these guys:
http://stackoverflow.com/questions/393637/django-fastcgi-randomly-raising-operationalerror
That is what happens on our live
I am getting an error when I type:
[unix]$ python manage.py syncdb
Error: No module named basic
The files are under
/home/username/webapps/sms/sms/basic/profiles/
PythonPath '/home/username/webapps/sms'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'djang
On Tue, Apr 21, 2009 at 05:15:00PM -0700, Kevin Audleman wrote:
> I've been moving forward with [my experimentation with using Django's
> development Web server for more than just development] and have come
> across an oddity: while I can access my site on the resident machine
> via http://localho
On Wed, Apr 22, 2009 at 08:25:43AM +0800, Russell Keith-Magee wrote:
> ./manage.py runserver will attempt to bind to localhost:8000 by
> default. This address isn't visible to any outside machine (by
> definition - it's the _local_ host).
Localhost [1] is a hostname, not an address. It typically
Try to add default sorting to model:
Meta:
ordering = ['-date']
On 22 апр, 01:56, Alfonso wrote:
> I've set up an inline cost price formset and configured the inline
> form with extra = 1 and max num=1 in associated admin.py.
>
> Problem is the inline is displaying the last two entered cost
Shouldnt there be another sms in your pythonpath since there are 2 in
file path?
Which folder holds your project settings?
/home/username/webapps/sms
or
/home/username/webapps/sms/sms ?
Alan
On Apr 22, 6:47 am, Denhuang wrote:
> I am getting an error when I type:
>
> [unix]$ python manage.py s
I wish i could see the html output of your program. But you have to
use either divs or ul&li elemnts to wrap that list and make it look
nice in template.
But i think the problem is that your widget output is just a list of
checkboxes, that you cant iterate in a template, so wrapping them is
impos
On Sun, Apr 19, 2009 at 1:26 PM, Lee Hinde wrote:
> Hi;
>
> Given this bit in admin.py
>
> class SectionInline(admin.TabularInline):
> model = Section
>
> class ClassAdmin(admin.ModelAdmin):
> list_display=('Class_Name','Instructor')
> search_fields =('Class_Name',)
> save_on_top = Tr
On Tue, Apr 21, 2009 at 10:38 PM, Lee Hinde wrote:
> On Sun, Apr 19, 2009 at 1:26 PM, Lee Hinde wrote:
>> Hi;
>>
>> Given this bit in admin.py
>>
>> class SectionInline(admin.TabularInline):
>> model = Section
>>
>> class ClassAdmin(admin.ModelAdmin):
>> list_display=('Class_Name','Instruc
On 22-Apr-09, at 3:06 AM, Margie wrote:
> Then in my html on the button that does the unlock I have something
> like this:
>
>
> I just thought maybe there was django magic that wouldn't require me
> to pass in the "next" url.
>
> Thanks for your insights!
If you want to avoid passing in a va
Hello,
I need to change MEDIA_ROOT while running tests, so that the files
pointed to in fixtures in ImageFields can be found. I've tried
settings.MEDIA_ROOT = "blah" in the test method and in the setUp
method but still it tries to find the file in the wrong location. Any
ideas how can I achieve t
98 matches
Mail list logo