Hi,
I have some data which I don't want to get from database for every
user request.How should I make such data available to all users(like
caching?)? What options are available in Django?
thanks
--~--~-~--~~~---~--~~
You received this message because you are subs
Hi,
I have some functionality which needs to be part of a class,which I
don't want to persist in database.Where should I put such a class? In
models.py?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
Hi,
I am newbie at Django.I have model with a custom method.In view I am
retrieving a single object.See below --
My model
class Problem(models.Model):
problem = models.CharField(max_length=100)
solution=models.CharField(max_length=500)
def __unicode__(self):
return self.problem
thanks..no tabs for sure
On May 22, 6:40 pm, Karen Tracey wrote:
> On Fri, May 22, 2009 at 8:11 AM, vishy wrote:
>
> > Hi,
> > I am newbie at Django.I have model with a custom method.In view I am
> > retrieving a single object.See below --
> > My model
Hi,
My requirement is to display a 2-column table (moves to be entered by
user for white and black of a chess game) with 10 rows for input
(textbox).How can I use forms module to achieve this? Is it possible?
thanks
--~--~-~--~~~---~--~~
You received this message b
Hi,
Are there any best practice regarding sessions in Django? Do yu
normally use db based sessions? What about using hidden element for
some scenarios, to maintain session?
regards
vishy
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi,
I am developing an application on windows. I decided to upload it on
webfaction n see how deployment goes. The issues I faced was with
paths given -
for templates - I had given absolute path of directory on windows,
for database(using sqlite) - just the name.But, for deployment I had
to chang
Hi,
For my project, I decided to use base.html file.After including it in
a couple of pages, the layout has been altered? Why so? How does
blockcontent render?
thks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dj
well i had this html..
Feedback
Without using base.html, they rendered differently(in terms of
position) in browser.
On Jun 9, 11:26 am, Rama Vadakattu wrote:
> >> the layout has been altered? Why so?
>
> What do you mean by this?
>
> On Jun 9, 11:24 am, vishy
where can I see these files - which affect base.html?
thks
On Jun 9, 12:14 pm, Necmettin Begiter
wrote:
> On Tue, Jun 9, 2009 at 09:29, vishy wrote:
> > Without using base.html, they rendered differently(in terms of
> > position) in browser.
>
> Which is normal, because ba
Hi,
I have installed migration tool 'south' on windows.In settings.py,
what path I will have to give in installed apps? I just gave 'south'.
I got this error -
AttributeError: 'module' object has no attribute 'adminsouth'
thanks
--~--~-~--~~~---~--~~
You received
k, got it working
forgot a comma in setting file
On Jun 17, 2:35 pm, vishy wrote:
> Hi,
>
> I have installed migration tool 'south' on windows.In settings.py,
> what path I will have to give in installed apps? I just gave 'south'.
> I got this error -
>
I have downloaded the latest module.Now,I need to set it up.I want
guidance,especially how to setup the templates, like what goes into
registration_form.html.If there is some source code that will be
great.
thanks
--
You received this message because you are subscribed to the Google Groups
"Djan
got the registration working.Now, how to setup activation email?
On Dec 12, 9:41 pm, vishy wrote:
> I have downloaded the latest module.Now,I need to set it up.I want
> guidance,especially how to setup the templates, like what goes into
> registration_form.html.If there is some source
Hi,
I have a requirement to log all user actions like created new
order,user logged in,logged out etc including user ip address.And,it
should be displayed in admin section with admin logentries.Is there a
module which I can use? What about reversion?
thanks
--
You received this message because
Hi,
I want to record an entry in admin log,everytime a user logs in.How
can I do this.I am using django's default authentication modules.
thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@
Hi,
For a modeladmin,I need to show a custom template when user adds or
edits.How can I go about implementing this functionality?
thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegr
Hi,
I am having issues with production server.Everything is running fine
on my local development server.On production site(using apache), CSS
files related to admin section are not being loaded.I have a feature
where admin can add products and upload images for the
product.But,when admin hits save
I gave the permissions.But,still get this error
OSError Exception Value:[Errno 13] Permission denied: django
On Aug 23, 11:02 pm, Antoni Aloy wrote:
> 2010/8/23 vishy :
>
> > Hi,
>
> > I am having issues with production server.Everything is running fine
> > on my
I have media/customermedia folder where images are uploaded for
customer model.
To display this image,the customer has image_url method which
concatenates 'media_root' plus 'image'(which has value like
customermedia/name.gif).But,for some reason the image is not getting
displayed in img src tag.
-
I want to add a column to the logentry model in admin section.How
can I do this?
thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send em
Hi,
I have made a custom view for admin section.I have added a link in the
index page which calls this custom view.I have copied the index page
to templates\admin in my application, and added this link.But, I want
this link to appear in auth section.How can I do this?
thanks
--
You received thi
Hi,
I have setup the registration module for a django project.Now, I want
to test the that activation email is sent.On windows, how can I test
this? How to send the email? Will I have to do any changes in
settings.py?
thanks
--
You received this message because you are subscribed to the Google
Hi,
I need to do spatial queries like find places within 5 miles of a
location given in latitude and longitude. So, I am thinking of
exploring PostGIS and GeoDjango. I have installed both. Now, I already
have a database which has a table for places with latitude and
longitude. Can I enable this db
lumns) and then add rows either using the ORM
> or with a spatial query including something like this as part of the insert:
>
> GeomFromText('POINT(' + x + ' ' + y + ')', 4326)
>
> where 4326 is the spatial reference system for longitude/latitude.
>
&
Thanks.
On Apr 25, 11:07 pm, Jeff Heard wrote:
> It can. I just usually consider it easier to create a new one
> On Apr 25, 2012 1:38 PM, "vishy" wrote:
>
>
>
>
>
>
>
> > So, the existing database cannot be used as a postgis db?
>
> > On Ap
thanks
On Apr 25, 11:07 pm, Jeff Heard wrote:
> It can. I just usually consider it easier to create a new one
> On Apr 25, 2012 1:38 PM, "vishy" wrote:
>
>
>
>
>
>
>
> > So, the existing database cannot be used as a postgis db?
>
> > On Ap
gt;
>
>
> On Wed, Apr 25, 2012 at 2:37 PM, vishy wrote:
> > So, the existing database cannot be used as a postgis db?
>
> > On Apr 25, 9:21 pm, Jeff Heard wrote:
> > > Create a new spatial database and import the data. That's by far your
> >
Hi,
I am using PointField to store longitude and latitude with SRID 4326.
All my places are in USA. Now, given a reference point, I do
lat = "41.881944"
lng = "-87.627778"
ref_pnt = fromstr("POINT(%s %s)" % (lng, lat))
distance_from_point = {'m':'50'}
r_gis
thanks. This is what I have done.
On Apr 26, 9:57 am, Jani Tiainen wrote:
> 25.4.2012 19:17, vishy kirjoitti:
>
> > Hi,
>
> > I need to do spatial queries like find places within 5 miles of a
> > location given in latitude and longitude. So, I am thinking of
> >
FROM my_table
I am getting an error
ERROR: parse error - invalid geometry
HINT: "010120E610D" <-- parse error at position 19 within
geometry
CONTEXT: SQL function "st_pointfromtext" statement 1
thanks
On Apr 26, 9:57 am, Jani Tiainen wrote:
> 25.4.2
On Apr 21, 7:10 pm, "Szabo, Patrick \(LNG-VIE\)"
wrote:
> Hi,
>
> I want to filter the dropdownlists that are automatically used to select
> a foreign-key in forms (in my views).
>
> Normally that could easily be done with "class Meta" in the Modelform.
>
> Thing is i want to filter by an attrib
test
On Apr 21, 7:10 pm, "Szabo, Patrick \(LNG-VIE\)"
wrote:
> Hi,
>
> I want to filter the dropdownlists that are automatically used to select
> a foreign-key in forms (in my views).
>
> Normally that could easily be done with "class Meta" in the Modelform.
>
> Thing is i want to filter by an at
1) I want to read files. Where should I put these files? I am not using a
model to link to the files. And how to discover the path to files? I am
working on windows, and in development environment I am using the full path
to the file.
2) I created my own custom classes, but when I import into vi
34 matches
Mail list logo