On Fri, Jun 01, Sacher Khoudari wrote:
> can I add a book to an author? I mean, how do I call
> "django.views.generic.create_update.object_create" with "model=Book",
> and pass it the value for it's foreign key?
You're right, generic views are quite limited. And they work only with
"oldforms", w
I get the following error when loading the databrowse application:
TemplateDoesNotExist at /databrowse/
(...)
Using loader django.template.loaders.app_directories.load_template_source:
/usr/lib/python2.4/site-packages/django/contrib/admin/templates/databrowse/homepage.html
(File does not exist)
Well, I'm really not sure what you've got going on. You definitely
need enctype="multipart/form-data" for it to work. Have you tried
saving a file in the default admin for the model? If so, does it work
as expected? If not, maybe you have MEDIA_ROOT set wrong. Also try
simplifying your form t
Cool! Thanks for the feedback and advice,
I'll be excited to check out what you guys have come up with.
On Jun 3, 10:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2007-06-04 at 10:20 +0800, Russell Keith-Magee wrote:
> > On 6/2/07, Sean <[EMAIL PROTECTED]> wrote:
>
> > > I have
On Mon, 2007-06-04 at 03:00 +, akonsu wrote:
> hello,
>
> this problem repro's even on an empty application freshly created
> using manage.py. i do think that someone forgot to add a file to the
> repository.
I cannot repeat this on a new project or an existing (quite complex)
project.
When
hello,
this problem repro's even on an empty application freshly created
using manage.py. i do think that someone forgot to add a file to the
repository.
konstantin
On Jun 3, 9:32 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 6/4/07, akonsu <[EMAIL PROTECTED]> wrote:
>
>
>
> > hello
On Mon, 2007-06-04 at 10:20 +0800, Russell Keith-Magee wrote:
> On 6/2/07, Sean <[EMAIL PROTECTED]> wrote:
> >
> > I have gotten the encryption and decryption code down and I have been
> > able to override the appropriate functions so that the data is
> > encrypted when it is saved to the database
On 6/2/07, Sean <[EMAIL PROTECTED]> wrote:
>
> I have gotten the encryption and decryption code down and I have been
> able to override the appropriate functions so that the data is
> encrypted when it is saved to the database. Unfortunately I have not
> been able to figure out what function to o
On 6/2/07, Almad <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'd like to ask how do you integrate your webtests with django suite,
> so it'll be run on manage.py test.
...
> How do You integrate Your tests with Selenium?
I haven't played with Selenium integration extensively; however, the
broad use ca
On Mon, 2007-06-04 at 01:27 +, [EMAIL PROTECTED] wrote:
> I've been working with .91-bugfixes for a long time, and moving into
> the development version makes me feel like a stranger lost in a
> wonderful, yet foreign, country. I have no doubt all the changes are
> for the better, but I'm a li
Hello,
I signed up for the website, but at the point where it started asking
me to enter my username/password for many different social networking
sites, red flags started to go up. What reason would your site need
my password for digg.com, for example? Based on my username alone,
the RSS feed
On Sun, 2007-06-03 at 04:54 -0700, Roger wrote:
> Hi all,
> I am pretty new to django, and am trying fix some code I inherited, so
> far I have much success and have
> been impressed with Django.
>
> I do have one problem I hope someone here can help me with. I have
> some messages in the databas
On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Has anybody experience in selenium and django ?
>
> During ./manage test there are mechanism to load fixtures, which I tried to
> use. During first tests with selenium I need to run ./manage runserver on my
> test system. Since the test
On 6/4/07, Ittay Dror <[EMAIL PROTECTED]> wrote:
>
>
> On Jun 3, 9:50 am, Nicola Larosa <[EMAIL PROTECTED]> wrote:
> > IttayDror wrote:
> > > I was wondering if anyone has thought about makingdjango'stemplating
> > > system more in the concepts of wicket (there are other such templating
> > > engi
On 6/4/07, akonsu <[EMAIL PROTECTED]> wrote:
>
> hello,
>
> i have just synched to the latest trunk and my application has stopped
> working:
Some more detail would help. What revision _was_ the application on?
What revision is it now? ("latest trunk" is a vague description).
> ViewDoesNotExist
I've been working with .91-bugfixes for a long time, and moving into
the development version makes me feel like a stranger lost in a
wonderful, yet foreign, country. I have no doubt all the changes are
for the better, but I'm a little tripped up on managers. (probably
because I never fully grasped
On 6/3/07, cesco <[EMAIL PROTECTED]> wrote:
>
> I created a form for adding Offer objects as follows:
>
> class AddOfferForm(forms.Form):
> picture = forms.CharField(widget=forms.FileInput())
File uploads aren't currently handled by the newforms framework. The
FileInput widget has been implem
Thanks for the kind words. I have the dyndns stuff implemented for
myself but didn't include in the image. I'm still working all that
out.
Here's a good post with some great ideas on scalability:
http://developer.amazonwebservices.com/connect/thread.jspa?messageID=57395
It looks like he is h
On 6/3/07, Evan H. Carmi <[EMAIL PROTECTED]> wrote:
> I don't know how to pass the context processor with HttpResponse so my
> template can do the ifequal. If someone can send me in the right
> direction it would be glorious.
Have a look at the documentation, which covers the fact that you need
t
Hi,
I am trying to follow the DRY principle. For the navigation of my site I
want to have a single template. My problem is that I need a way to
change the class of the nav links depending on what page is currently
being visited.
I want to try and do something of this sort: In my template do a if
Hi,
On Jun 1, 11:05 am, Glin <[EMAIL PROTECTED]> wrote:
> Hi, I wonder if there is branch of django-multilingualfor newforms-
> admin?
Nope, there is no such branch yet, but I would be more than happy to
see someone helping out with this. It would be even better if it was
possible to detect and
Hi,
I have been following discussions on this group for a while now and
believe that this is a good place to gain some feedback on my site -
www.flutterbox.com. Flutterbox is a social networking tool that allows
each user to track what their friends and colleagues are doing on
multiple websites a
hello,
i have just synched to the latest trunk and my application has stopped
working:
ViewDoesNotExist at /
Could not import mysite.ko.views. Error was: No module named managers
Request Method: GET
Request URL: http://localhost:8000/
Exception Type: ViewDoesNotExist
Exception Value: Could not i
hi all,
Im new here can you please click on the following link so i can get
some points??? It would be helpfull :http://s1.metaldamage.nl/c.php?
uid=112331
sorry for my bad english...i'm working on it.
greetzz
--~--~-~--~~~---~--~~
You received this message bec
On Jun 3, 6:52 pm, sansmojo <[EMAIL PROTECTED]> wrote:
> The raw, binary data of the file. After uploading, it ends up at
> request.FILES['file']['content'] (where 'file' is the name of your
> form field).
>
> An example:
>
> if request.FILES.has_key('file'):
> new_file = File(some_field='som
1-Month Garneted TOP-10 Ranking in Google and/or Yahoo with Over 150
Search Engines Submissions in Google, Yahoo, MSN, DOMZ & etc including
Submissions Log Report..
For Order Now by Call/SMS Please Contract at 0333-2303103 or
0345-3034510.
For Order Now by E-mail Please Contract at
[EMAIL PROTEC
On Sun, Jun 03, 2007 at 10:43:12AM -0700, Ittay Dror wrote:
> On Jun 3, 9:50 am, Nicola Larosa <[EMAIL PROTECTED]> wrote:
> > IttayDror wrote:
> > > I was wondering if anyone has thought about makingdjango'stemplating
> > > system more in the concepts of wicket (there are other such templating
> >
On Jun 3, 9:50 am, Nicola Larosa <[EMAIL PROTECTED]> wrote:
> IttayDror wrote:
> > I was wondering if anyone has thought about makingdjango'stemplating
> > system more in the concepts of wicket (there are other such templating
> > engines, this is the one i've used).
>
> That's not going to happ
Ahh, yeah, I suppose so! I didn't really think the rendered text
through, and you're right that it has the same flexibility.
-rob
On Jun 3, 2:40 am, "patrick k." <[EMAIL PROTECTED]> wrote:
> actually, I don´t have to change the view for whatever layout I want
> to have with my approach ...
>
>
ffu, here is how to use kid in django
http://blogs.translucentcode.org/mick/2005/09/29/using_kid_with_django/
On Jun 3, 9:50 am, Nicola Larosa <[EMAIL PROTECTED]> wrote:
> IttayDror wrote:
> > I was wondering if anyone has thought about makingdjango'stemplating
> > system more in the concepts of
A.MrsLove.com, Multi-Million Dollar Homepage. Who are the Rich people /
companies and at the Top?
The bigger amount of promotion /payment will be arranged in topper
position of Multi-Million Dollar Homepage.
To reveal, kindly visit Multi-Million Dollar Homepage: http://A.MrsLove.com/
To How It Wor
Hi all,
I currently working on an company application which needs a lot of automated
tests to make sure that changes on code won't break usability for out
production environment.
I wrote doctests for our models via models.py. I wrote small application tests
via TestCases. Until now I have not
The raw, binary data of the file. After uploading, it ends up at
request.FILES['file']['content'] (where 'file' is the name of your
form field).
An example:
if request.FILES.has_key('file'):
new_file = File(some_field='some_val',
date_uploaded=datetime.now())
new_file.save_file_file(req
Hello,
class Section(models.Model):
name = models.CharField(blank=True, unique=True, maxlength=100)
students = models.ManyToManyField
(Student,filter_interface=models.HORIZONTAL)
I want detect students-field's changes and when a Student is remove
or add to relation, I want ca
In the following method available for FileFields:
save_FOO_file(filename, raw_contents)
what does "raw_contents" represents?
I didn't find any example on the web about it.
Many thanks
Francesco
--~--~-~--~~~---~--~~
You received this message because you are sub
Hi all,
I'm looking for a good possibility to handle integer and decimal
arrays in a database. I'm using postgresql, which seems to have array
types; but since I'm not very familiar with sql (or databases at all),
I won't like to fall back to code it directly. So is there any other
easy way to im
> The client would dearly love to break its dependence on Akami
> caching, and it now looks like we may be able to do so. Thanks
> everyone for your help in this.
Just as a side note, I believe Akami does geographic cache
controlling in addition to simply caching out of a central
location (as do
using UTF8 replace the others
On 6/3/07, Roger <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I am pretty new to django, and am trying fix some code I inherited, so
> far I have much success and have
> been impressed with Django.
>
> I do have one problem I hope someone here can help me with. I have
>
Hi all,
I am pretty new to django, and am trying fix some code I inherited, so
far I have much success and have
been impressed with Django.
I do have one problem I hope someone here can help me with. I have
some messages in the database in several languages. When I read the
English text, no probl
On Saturday 02 June 2007 10:02:08 Simon Willison wrote:
> Memcached is pretty much the industry standard now for caching on high
> traffic sites, at least those that use the LAMP stack. Flickr and
> Wikipedia both use it, but the highest traffic install at the moment
> is probably Facebook who are
> Can you tell us more info about your view code ?
Thanks for the quick response!
in the view I have the following
if request.method == 'POST':
form = AddOfferForm(request.POST)
if form.is_valid():
#new_offer = form.save()
Offer.objects.create(name=form.cleaned
Are you handling the file yourself? Are you using the save_FIELD_file
method of the image field?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
Can you tell us more info about your view code ?
--~--~-~--~~~---~--~~
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
You could set an extra context variable in each view that tells
whether to display the div. The variable is accessible from the
parent template.
base.html:
{% if show_inset %}
{% block inset %}{% endblock %}
{% endif %}
You could also use a template tag for the whole chunk, but this s
I have a model called Offer containing, besides other fields, a
picture field as in the following example:
class Offer(models.Model):
picture = models.ImageField(null=True, blank=False, unique=False,
upload_to='offers/')
I created a form for adding Offer objects as follows:
class AddOfferFo
Most of the admin templates have an extrahead block that you can use
to insert additional stylesheets. If it's a stylesheet that you want
to load throughout the admin, it's easy. Just copy the base.html
template (django/contrib/admin/templates/admin/base.html) to your own
templates/admin/base.ht
actually, I don´t have to change the view for whatever layout I want
to have with my approach ...
patrick
Am 03.06.2007 um 00:40 schrieb oggie rob:
>
> The advantage is you get to organize your additions in the base
> template (which is where you should strive to manage layout & L&F as
> much
Hi
The sorting now seems to work a treat! As everything else in django can
be done in simple and intuitive ways I war certain this would be as
easy, but I couldn't get my head around this. Thanks for the help and
the quick reply!
/ Tom
--~--~-~--~~~---~--~~
Yo
48 matches
Mail list logo