I want to redirect with HttpResponseRedirect or stop and display a
error message in admin view,
when user change some record in admin view while it not means some
conditions.
I try to rewrite save() in models.py
class Seed(models.Model):
def save(self):
if os.path.exist(file
Hi,
Thanks for the reply. I tried both but still got the same result.
Maybe you have other ideas?
Thanks, Alex A.
On Jun 24, 7:51 pm, Gustavo Henrique wrote:
> try:
>
> from unicodedata import normalize
> mytext = '%u05D9%u05D2'
> newtext = normalize('NFKD', mytext).encode('ASCII','ignore')
>
On Jun 24, 6:51 pm, Dhruv Adhia wrote:
> Second part is working.
Great!
> I am new to those firebug stuff. Can you guide me to docs?
Firebug can be found at [1]. The docs are there as well. Basically you
enable Javascript debugging for your site and watch for errors in the
Firebug console.
[
In the content of my flatpage, there's a picture to be displayed that
it was stored in django media folder. I want to link to this file
without having to specify its url directly. Instead, I want to use
something like {{MEDIA_URL}} when editing the content via django-
admin. I know I can use it no
On Thursday 25 June 2009 03:47:54 ydjango wrote:
> For some at intermediate level in Django and basic level in Python
> ( learned Python thru django) which would be better book for next
> reading Practical Django Projects by James Bennet or Pro Django by
> Marty Alchin.
both are KA must haves
--
On Thursday 25 June 2009 10:24:12 Wiiboy wrote:
> I'm a bit of a noob at Web Devlopment (as you already know if you've
> read any of my posts on here).
>
> I've read that using hooks in key places in a website can help ease
> future development. Can/Should Django's signals be used for that
> purp
you can put {{MEDIA_URL}}
but while displaying instead of displaying it directly just do the
below
from django.template.loader import render_to_string
from django.template import Context, Template
t = Template("flat page content goes here")
newflatpage = t.render({},context_instance=RequestCon
Sorry, didn't realize there is a separate group for django-
filebrowser. See discussion here:
http://groups.google.com/group/djangofilebrowser/browse_thread/thread/2695f83907082896#
On Jun 24, 6:57 pm, Kusako wrote:
> Hi-
>
> I have a form, not backed by a model and would like to use django-
> f
Please ignore the last line..
On Jun 25, 2:40 pm, Rama Vadakattu wrote:
> you can put {{MEDIA_URL}}
>
> but while displaying instead of displaying it directly just do the
> below
>
> from django.template.loader import render_to_string
> from django.template import Context, Template
>
>
Hi,
I'm trying to place in my app an amf gateway,
so I make one gateway with code:
#-*- coding: utf-8 -*-
from pyamf.remoting.gateway.django import DjangoGateway
from my.views import some_view
services = {
'some_service.hello': some_view.get_smt,
}
echoGateway = DjangoGateway(services)
t
Hi Guys,
I am facing a problem in File Upload field in Django, It shows the
error ''FileDict' object has no attribute 'startswith' '.
Any help is appreciated
Thanks and Regards
Harish Bhat
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Hello!
I started to write tests for my RESTful web service, written in
Django. I use django.test.Client for making HTTP requests. GET and
POST methods works all right, but I didn't find any options to send
non-MULTIPART_CONTENT data in PUT request.
My code is:
from django.test import TestCase
f
If I am looking to use an abstract base class with multiple models,
which is assigned the primary key id? The child or the parent?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
On 25 Cze, 13:50, Harish wrote:
> Hi Guys,
>
> I am facing a problem in File Upload field in Django, It shows the
> error ''FileDict' object has no attribute 'startswith'
'startswith' is a string method, aren't you trying to make some
operations
of file name, but using FileDict object by mistak
I am using forms for model.
On Jun 25, 5:20 pm, Tomasz Zieliński
wrote:
> On 25 Cze, 13:50, Harish wrote:
>
> > Hi Guys,
>
> > I am facing a problem in File Upload field in Django, It shows the
> > error ''FileDict' object has no attribute 'startswith'
>
> 'startswith' is a string method, aren
I try to use Django in a new project. Honestly, it is very bad
experience. It looks not boosting my development speed. Today, I
almost give up and begin to look up another Python framework
One question, does anyone use a hiddenInput in Form? Something like:
class ProfileForm(forms.Form):
You need to define required=False
On Thu, Jun 25, 2009 at 10:24 PM, steveneo wrote:
>
> I try to use Django in a new project. Honestly, it is very bad
> experience. It looks not boosting my development speed. Today, I
> almost give up and begin to look up another Python framework
>
> One que
Hello all:
While working on my current project we end-up developing some re-
usable django app and I hope some of you will find it useful and maybe
even contribute some patch :) Currently it only supports PayPal using
django-paypal. To get everyone started we have put together a django-
saas-kit
On Jun 25, 1:24 pm, steveneo wrote:
> I try to use Django in a new project. Honestly, it is very bad
> experience. It looks not boosting my development speed. Today, I
> almost give up and begin to look up another Python framework
>
> One question, does anyone use a hiddenInput in Form? Som
On Thu, Jun 25, 2009 at 7:18 AM, Roman Vorushin wrote:
>
> Hello!
>
> I started to write tests for my RESTful web service, written in
> Django. I use django.test.Client for making HTTP requests. GET and
> POST methods works all right, but I didn't find any options to send
> non-MULTIPART_CONTENT d
steveneo wrote:
> I try to use Django in a new project. Honestly, it is very bad
> experience. It looks not boosting my development speed. Today, I
> almost give up and begin to look up another Python framework
Go for it :-)
Chris
--
Simplistix - Content Management, Zope & Python Consultin
2009/6/25 Harish
>
> I am using forms for model.
>
You have not provided nearly enough information for anyone to give you much
useful help. The full traceback of the error, rather than just the error
message, would give people much more to work with. Also some snippets of
your code might help.
Noxxan wrote:
> I'm trying to place in my app an amf gateway,
> so I make one gateway with code:
>
> #-*- coding: utf-8 -*-
> from pyamf.remoting.gateway.django import DjangoGateway
>
> from my.views import some_view
>
> services = {
> 'some_service.hello': some_view.get_smt,
> }
>
> echoG
LeeRisq wrote:
> If I am looking to use an abstract base class with multiple models,
> which is assigned the primary key id? The child or the parent?
Abstract classes don't get database tables at all, so only the child
will have the key.
--~--~-~--~~~---~--~~
You
I think I got your concept, converting all MEDIA_URL to corresponding
url before displaying.
But I still curious to know where should I put this code in the
project?
I've been thinking and can only come up with a way, by creating a new
middleware replicating FlatpageFallbackMiddleware
but instead
Hi,
I have a chart which I generate on the fly.
Basically, I have hard linked an image. The image src contains GET
parameters, which is used to generate the chart image via matplotlib.
The resultant image is returned back as 'Content-Type' = 'image/png',
and thus the chart is displayed.
BooleanField limits only to CheckBox? But I set
widget=HiddenField It does not report error. HTML renders
correctly, but actually, you can not use like that?!
On Jun 25, 11:22 pm, Chris Withers wrote:
> steveneo wrote:
> > I try to use Django in a new project. Honestly, it is very bad
>
Hi!
I searched on documentation but I didn't see anything related with
managing users' groups, I want to do something like a "staff page" and
for that I need to get a list of groups, I need to get the NAME of
each group and I need to get the list of members of each group. How
can I do this?
I am
steveneo wrote:
> BooleanField limits only to CheckBox? But I set
> widget=HiddenField It does not report error. HTML renders
> correctly, but actually, you can not use like that?!
Didn't you hear me: I said go find another framework, Django obviously
sucks because one new user can't get hi
Hi all:
I am refactoring a django app to make it reusable and share it open
sourced to the world. There is a lot code which I think it is optional
and maybe not everybody will want to use, like some model fields, url
patterns of view functions. so my initial approach is to release only
the minima
On Thu, 2009-06-25 at 06:43 -0700, steveneo wrote:
> BooleanField limits only to CheckBox? But I set
> widget=HiddenField It does not report error. HTML renders
> correctly, but actually, you can not use like that?!
http://docs.djangoproject.com/en/dev/ref/forms/fields/#booleanfield
You sho
Chris,
I don't know you. But I hope your day gets a little better and your
problems lighter.
Sincerely,
Richard
On 6/25/09, Chris Withers wrote:
>
>
> steveneo wrote:
> > BooleanField limits only to CheckBox? But I set
> > widget=HiddenField It does not report error. HTML renders
> > corr
On Thu, Jun 25, 2009 at 9:46 AM, Chris Withers wrote:
>
> steveneo wrote:
> > BooleanField limits only to CheckBox? But I set
> > widget=HiddenField It does not report error. HTML renders
> > correctly, but actually, you can not use like that?!
>
> Didn't you hear me: I said go find another f
Right now, Django doesn't seem to support the multiple databases on
the same server or different servers. Will that feature be available
out of the box for future releases?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
On Jun 25, 2:45 pm, Gil Sousa wrote:
> Hi!
>
> I searched on documentation but I didn't see anything related with
> managing users' groups, I want to do something like a "staff page" and
> for that I need to get a list of groups, I need to get the NAME of
> each group and I need to get the list o
Production Box spec: mandrake 10.1.1, python2.3,
libmysql15-5.0.1, MySQL1.0, Django 1.0.
can't get sessions to work. My site (and sessions) works on my
development box with a more or less current version of ubuntu, when I
copy over the project to the production box it does not work. I have
ru
Hello, I'm using Django 0.96 and it is not possible to upgrade to
1.1/2 yet. I am attempting to perform the following function: "Get all
of the MemberRole objects filtered by start date and end date, and
also filtered by the Member's (foreign key relationship) first name OR
last name.
MemberRole:
Hi Everyone
I cannot for the life of me get Pyfacebook to work with Dreamhost. It
is a problem with the middleware and the fact that at Dreamhost you
have to use fcgi (instead of mod_python for example).
Any help would be greatly appreciated
ERROR MESSAGE BELOW
ImproperlyConfiguredPython
2009/6/25 lc :
>
> Production Box spec: mandrake 10.1.1, python2.3,
> libmysql15-5.0.1, MySQL1.0, Django 1.0.
>
> can't get sessions to work. My site (and sessions) works on my
> development box with a more or less current version of ubuntu, when I
> copy over the project to the production box
Hey everyone,
I was wondering the best way to isolate django models so they can be used
in other python applications. I have seen the django extensions, which are
very helpful. But a 'job' is still coupled to the django environment.
Ideally I'd like to do this:
* Write some function foo() that
> Right now, Django doesn't seem to support the multiple
> databases on the same server or different servers. Will that
> feature be available out of the box for future releases?
You may want to eavesdrop on the Django Developers group (as
opposed to this Django Users group) where Alex Gaynor h
you must use the django.template.resolve_variable method:
obj = Foo.objects.get(id=resolve_variable(self.id, context))
which would be called within the render method of you templatetag
class, which contains the "context" from the view.
On Jun 21, 10:44 pm, Joru wrote:
> Is it possible to reso
Hi,
I am trying to use the ajax_m2m_widget from djangoplus but there is
very little information could anyone help me?
Thanks,
-Hugo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
On Thu, Jun 25, 2009 at 12:33 PM, jhugo wrote:
>
> Hi,
>
> I am trying to use the ajax_m2m_widget from djangoplus but there is
> very little information could anyone help me?
>
> Thanks,
>
That depends of what kind of help do you need. Please be more specific.
--
Kind Regards
--~--~-~-
I want to use this widget instead of the default one from the many to
many field but don't know how to. Do you have an example that can get
me started.
Thanks,
- Hugo
On Jun 25, 11:39 am, "Gabriel ." wrote:
> On Thu, Jun 25, 2009 at 12:33 PM, jhugo wrote:
>
> > Hi,
>
> > I am trying to use the
I have since discovered that I can use the following:
585 if len(name) > 0:
586 members = MemberRole.objects.filter(
Q(member__first_name = 'John') |
Q(member__last_name = 'John'),
587 start_date__lte = today,
588 end_date_
> you'll see it doesn't say anything about the validation behavior being
> dependent on the widget in use. So it doesn't matter what widget you use,
> if you want to be able to validate False as a valid value, then you need to
> include required=False in the form field definition.
To be complet
Hey Joost,
I was just googling and came across all those old hacky ways to integrate
tinymce which I finally did yesterday. Its working. But yes if its something
builtin now I should go for that. However I dont know If I can easily change
the properties that way for the editor. Right now in the Ha
My reading of the documentation isn't clear on where form definitions
could or should be defined. Is it better to define forms inside an
apps views.py file, or should I put the form definitions into a
separate forms.py file and import it into the views as necessary? The
latter seems more reusabl
Hi there,
I'm facing with a curious problem.
I've an project which is hosted on three differents servers :
one (my local PC) :
debian lenny /
python 2.5.2 / django 1.0.2 final
apache 2.2.9 / mod_python 3.3.1-7
the two others (production and validation server) :
OpenSUSE 11.1 /
python 2.6.2
Question: When is it necessary to escape a forward slash? I'm dealing
with these two situations in my templates -- assume the next context
variable is a URL of some sort.
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---
Hi all,
I am trying to implement a "FlagField" that can be used to store
binary flags in a single integer value in the DB. The approach that
looks most promising is subclassing Integer Field, pass in some
choices as possible flags (which will be internally converted into the
appropriate bitmasks)
I am sorry folks, I just found the corresponding issue:
http://code.djangoproject.com/ticket/9245
however, i would still be interested in discussing the reasons behind
this - and why the patch provided in the ticket did't get applied
yet ;)
flo
--~--~-~--~~~---~--~-
On Thu, Jun 25, 2009 at 10:24 AM, Tim Chase
wrote:
>
> > Right now, Django doesn't seem to support the multiple
> > databases on the same server or different servers. Will that
> > feature be available out of the box for future releases?
>
> You may want to eavesdrop on the Django Developers grou
On Thu, Jun 25, 2009 at 12:12 PM, Technicalbard wrote:
>
> My reading of the documentation isn't clear on where form definitions
> could or should be defined. Is it better to define forms inside an
> apps views.py file, or should I put the form definitions into a
> separate forms.py file and imp
I created a simple_tag:
def news_for_this_page(page):
if page.entity_set.all(): # check page belongs to an entity first
e = page.entity_set.all()[0] # first entity will be only one
newslist = []
for item in e.newsitem_set.all(): # get entity's news items
ne
IIRC, pyAMF tries to turn all python objects into amf related ones upon
output. What you may be seeing here is that querysets aren't able to make it
through this conversion. Check your apache error logs for the stacktrace, if
you have one, or like Randy said, set Debug = True.
On Thu, Jun 25, 2009
It works.
--~--~-~--~~~---~--~~
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
django-users+unsubs
On Thu, Jun 25, 2009 at 1:52 PM, Daniele Procida
wrote:
>
> I created a simple_tag:
>
> def news_for_this_page(page):
>if page.entity_set.all(): # check page belongs to an entity first
>e = page.entity_set.all()[0] # first entity will be only one
>newslist = []
>for ite
On Jun 25, 6:52 pm, "Daniele Procida"
wrote:
> I created a simple_tag:
>
> def news_for_this_page(page):
> if page.entity_set.all(): # check page belongs to an entity first
> e = page.entity_set.all()[0] # first entity will be only one
> newslist = []
> for item in e.n
To clarify, you're displaying a list of 1000+ models on a single page,
yes?
My understanding is that the debug_toolbar analyzes each SQL query and
keeps each result in memory before rendering everything in the
template. I don't know how your query works, but let's take an extreme
case and say you
On Thu, Jun 25, 2009, Daniel Roseman wrote:
>> To do this, I think I need my function to call another template to
>> render it appropriately - is that correct?
>The best thing to do here is to use an 'inclusion tag'
Thanks, I'm looking at that now, because the solution I came up with is
also i
On Jun 25, 12:52 pm, Andrew Fong wrote:
> Question: When is it necessary to escape a forward slash? I'm dealing
> with these two situations in my templates -- assume the next context
> variable is a URL of some sort.
>
>
>
> http://en.wikipedia.org/wiki/URL_encoding#Percent-encoding_reserved_c
I want to build a site which has latest news on the side of all the
pages, I wanted to build the pages using simple templates (static
content) and then reference them using the direct_to_template in the
urls file.
Since each template extends base how can I get base to contain the
latest news or d
I had this same problem...the user and pass were fine but no users
could authenticate on any DB, regardless of settings.
Turns out my issue was only that I needed to add the string
"localhost" to the host parameter.
It's odd since the comments specifically state to leave it blank for
localhost..
I have been looking for a way to apply and manage my model changes to my
db schema. This came out of a brainstorm yesterday afternoon. Just
wanted to pass the idea through the community to see where it fits, if
anywhere, upstream.
The general idea is to save sqlall output from manage.py. You t
Hi All,
I feel like there’s something simple I’m overlooking here. I can't
seem to get TinyMCE to work when I use the built-in widget from Django-
TinyMCE. This works if I uncomment the Media class at the bottom, but
the widget version of TinyMCE simply doesn't show up. Is there a
better way to t
On Jun 25, 12:54 am, Wiiboy wrote:
> I'm a bit of a noob at Web Devlopment (as you already know if you've
> read any of my posts on here).
>
> I've read that using hooks in key places in a website can help ease
> future development. Can/Should Django's signals be used for that
> purpose?
>
> I
On Thu, Jun 25, 2009 at 12:23 PM, Pete-Sitedesign <
peter.king.sitedes...@googlemail.com> wrote:
>
> I want to build a site which has latest news on the side of all the
> pages, I wanted to build the pages using simple templates (static
> content) and then reference them using the direct_to_templa
On Jun 25, 9:22 pm, Alex Gaynor wrote:
> On Thu, Jun 25, 2009 at 12:23 PM, Pete-Sitedesign <
>
> peter.king.sitedes...@googlemail.com> wrote:
>
> > I want to build a site which has latest news on the side of all the
> > pages, I wanted to build the pages using simple templates (static
> > content
On Jun 25, 2:33 pm, Pes wrote:
> Hi All,
>
> I feel like there’s something simple I’m overlooking here. I can't
> seem to get TinyMCE to work when I use the built-in widget from Django-
> TinyMCE. This works if I uncomment the Media class at the bottom, but
> the widget version of TinyMCE simply
Hey Guys,
I'm new to Django and computer programming and am currently following
a tutorial from this website:
http://www.zabada.com/tutorials/django-quick-start.php
Everything worked until the activate the admin part.
My code to activate the admin in my records/urls.py is as such:
from django
On Thu, Jun 25, 2009 at 3:27 PM, Pete-Sitedesign <
peter.king.sitedes...@googlemail.com> wrote:
>
> On Jun 25, 9:22 pm, Alex Gaynor wrote:
> > On Thu, Jun 25, 2009 at 12:23 PM, Pete-Sitedesign <
> >
> > peter.king.sitedes...@googlemail.com> wrote:
> >
> > > I want to build a site which has latest
I have a problem where I'm using Django, specifically the ORM in a non
web based daemon script to process some data from a site, by setting
the environment variables respectively so that it knows where the
settings module is, etc
I'm running the following query:-
Inqueue.objects.filter(processed
On Thu, Jun 25, 2009 at 3:31 PM, afrobeard wrote:
>
> I have a problem where I'm using Django, specifically the ORM in a non
> web based daemon script to process some data from a site, by setting
> the environment variables respectively so that it knows where the
> settings module is, etc
>
> I'm
We have a contract available for offer.
We have been left with a project which our programmers started (about
quarter way complete) for one of our clients. Our programmers have now
left us so we are left with a client wanting the project finishing.
It would need someone with quite a bit of Djang
On Jun 25, 9:51 am, nabucosound wrote:
> Hi all:
>
> I am refactoring a django app to make it reusable and share it open
> sourced to the world. There is a lot code which I think it is optional
> and maybe not everybody will want to use, like some model fields, url
> patterns of view functions.
Thanks for the reply Alex, however I beleive I might have
miscommunicated the problem a big. The actual format of the daemon is
somewhat like this:-
1while True:
2rs = Inqueue.objects.filter(processed = 0).order_by('-timestamp')
3for item in rs:
4.1 processitem(item)
4.2
On Thu, Jun 25, 2009 at 4:29 PM, Divesh Gidwani wrote:
>
> Hey Guys,
>
> I'm new to Django and computer programming and am currently following
> a tutorial from this website:
>
> http://www.zabada.com/tutorials/django-quick-start.php
>
I wouldn't recommend that. From a brief look that tutorial
Hi,
I have a simple scenario using Django 0.96 and am looking for a
cleaner solution than what I currently have:
I want to include a simple submission form (a few simple fields) on
most pages of my site. I have the form action set to '.' so that
validation can be done in place and errors display
Which backend are you using? If you happen to be using MySQL with InnoDB,
and you haven't altered the default settings you are probably using an
isolation level of REPEATABLE-READ.
You can read more about that setting here
http://dev.mysql.com/doc/refman/5.0/en/set-transaction.html#isolevel_repea
On Thu, Jun 25, 2009 at 4:48 PM, afrobeard wrote:
>
> Thanks for the reply Alex, however I beleive I might have
> miscommunicated the problem a big. The actual format of the daemon is
> somewhat like this:-
>
> 1while True:
> 2rs = Inqueue.objects.filter(processed = 0).order_by('-timestamp')
On Jun 25, 9:43 am, koranthala wrote:
> Hi,
> I have a chart which I generate on the fly.
> Basically, I have hard linked an image. The image src contains GET
> parameters, which is used to generate the chart image via matplotlib.
> The resultant image is returned back as 'Content-Type'
OK Thanks for that. I have worked out that the context_processors
route is best for this one but the template_tags is ideal for another
part I was working on.
Thanks for the help.
Regards Pete
On Jun 25, 9:29 pm, Alex Gaynor wrote:
> On Thu, Jun 25, 2009 at 3:27 PM, Pete-Sitedesign <
>
>
>
> p
On Jun 25, 4:49 pm, Karen Tracey wrote:
> On Thu, Jun 25, 2009 at 4:29 PM, Divesh Gidwani wrote:
>
> > Hey Guys,
>
> > I'm new to Django and computer programming and am currently following
> > a tutorial from this website:
>
> >http://www.zabada.com/tutorials/django-quick-start.php
>
> I wouldn
On Jun 25, 4:43 pm, delino wrote:
> Hi,
>
> I have a simple scenario using Django 0.96 and am looking for a
> cleaner solution than what I currently have:
>
> I want to include a simple submission form (a few simple fields) on
> most pages of my site. I have the form action set to '.' so that
>
I found a sample contained in a rar archive with a media file included
(2 css and js) which the svn source does not have.
I changed my urls, forms and base.html to reflect that from the
example but when i reload the page it changes the default m2m field
with a text field with a plus sign next to i
> If they are non mutable, is thread safety even an issue?
I guess I really wanted to just say "If your intention is to use
thread-safe globals..."
thanks for your help on this.
btw, I guess my question could have been asked in terms of whether a
singleton pattern is possible... I saw that someo
Presumably you already have all of the data required to generate a
chart on the server? If so, then store the chart data in a model, and
just reference it by id. e.g.
(or w/ a pretty URL: )
And create a Chart object and store it before sending out the HTML
response. Then update your chart view
2009/6/25 Andrew Fong :
>
> To clarify, you're displaying a list of 1000+ models on a single page,
> yes?
>
Yes, i will change that as soon as I could.
> My understanding is that the debug_toolbar analyzes each SQL query and
> keeps each result in memory before rendering everything in the
> temp
I'm using MySQL 5.1.33
I shifted the db engine to MyISAM from INNODB and everything worked
like a charm. Then I switched it back to INNODB to test the pythonic
workarounds from
http://groups.google.com/group/django-users/browse_thread/thread/e25cec400598c06d/55fa3724d2754013?#55fa3724d2754013
'se
I am trying to implement a specialized ticketing system in django. At
a high level, it has many similarities to the django bug tracking
system, which I believe is implemented using trac.
I have coded the models models and the associated django code that
lets people create their tickets. Now I'm
Hi,
You could submit all the filters from an html form and in your view
function loop through the request.Post and build the queries if the
Post value is not empty.Using django.db.models.Q
Laszlo Antal
http://www.antalconsulting.com
Office: 208-699-7508
On Jun 25, 2009, at 2:32 PM, Margie
Hello,
When I set SESSION_EXPIRE_AT_BROWSER_CLOSE to True, Django
automatically remove not only my session cookie (sessionid) but also
any others cookies creating by using response.set_cookie('myname',
data). Why? I want to keep all cookies without session cookie.
Thank You.
--~--~-~--
Hello,
Whenever I try to import any of the above into the view into my site
it shoots back with:
Caught an exception while rendering: Could not import AECOM.ofc.views.
Error was: DLL load failed: The specified module could not be found.
And in the apache log:
[Thu Jun 25 16:53:46 2009] [error]
I am a new user to Django and want to set it up with Apache, Nginx,
and MySQL on Windows Vista for testing. I will set up on Linux once I
get a shared hosting account. Does anyone know a website that explains
this very well from start to finish on Vista? Or can someone explain
how to do this on Wi
Hi,
I'm trying to set up a global model object list, to populate a part of a
menu in my site. How can I do it? How can I instantiate the model object
list, so that it is available to all the views?
Thanks!
Diogo
--~--~-~--~~~---~--~~
You received this message
you didn't specify max_age in response.set_cookie('myname', data),
which assumes None by default. Therefore that cookie expires when
browsers closes.
On Jun 25, 3:58 pm, pr wrote:
> Hello,
>
> When I set SESSION_EXPIRE_AT_BROWSER_CLOSE to True, Django
> automatically remove not only my session c
On Jun 25, 7:08 pm, Dhruv Adhia wrote:
> I was just googling and came across all those old hacky ways to integrate
> tinymce which I finally did yesterday. Its working. But yes if its something
> builtin now I should go for that. However I dont know If I can easily change
> the properties that w
I am getting an error working through "Writing your first Django app,
part 1" tutorial. "python manage.py runserver" generates the error:
...raise ImproperlyConfigured("Error loading psycopg module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg
module: No module nam
1 - 100 of 124 matches
Mail list logo