| Name | tom |
|---|---|
| Email Address | n/a |
| Posts | 8 |
-
- 2010-08-14 16:59:02
- GeoDjango PointField
- Board » Django » Models
-
I went through all the steps setting up/configuring GeoDjango. However, when I run syncdb it does not create the PointField column in the database, and results in a DatabaseError since it can't find this column. How can I get it so that it will treat this point field as a longitude/latitude pair so that it is something I can adjust in the admin? Any help would be appreciated as I am new to these things.
--- Last Edited by tom at 2010-08-14 17:00:30 ---
-
- 2010-06-08 13:32:53
- Re: ImageField in admin
- Board » Django » Models
-
I realized that I put the absolute path in the upload_to attribute, and not the path relative to MEDIA_ROOT. Now I can use {{ file_field.url }} in my templates!
-
- 2010-03-02 09:04:13
- Re: ImageField in admin
- Board » Django » Models
-
I am talking about the Django admin, where you upload an image. Once you have uploaded the image, there is a link allowing you to see the image. However, this link is the absolute path to the image on the filesystem. I want to make this link to the image's url, but I am unsure about how to do this in the admin site.
-
- 2010-03-01 21:00:00
- ImageField in admin
- Board » Django » Models
-
I want the link for the ImageField not to be the path to the image on the filesystem, but instead to the url. Can somebody please enlighten me? I very much appreciate it.
-
- 2009-09-17 15:33:04
- a change in field type in model
- Board » Django » Models
-
I have models Puzzle and Word. Word has a foreign key to Puzzle; however, the word may belong to more than one Puzzle. I had to add the same word in Word several times because it references a different Puzzle. How can I change it to a ManyToMany field with the way it is set up now?
-
- 2009-09-06 14:50:08
- Re: Using JS scripts in template
- Board » Django » Templates
-
Thank you very much sir.
-
- 2009-09-06 13:04:41
- Using JS scripts in template
- Board » Django » Templates
-
When I open my template from my templates folder, <script type="text/javascript" src="wz_jsgraphics.js"></script> works and I am able to see my graphics on the page. However, when I access the template from locahost, the script is not included and I do not see any of my graphics. Has anyone ran into this problem before? If you can help I would be greatly appreciative.
--- Last Edited by tom at 2009-09-06 13:05:13 ---
-
- 2009-08-31 23:53:11
- Wrong form action
- Board » Django » Templates
-
I have an HTML form in my template where the action equals ".". Assuming they are on the page /project/app/, after the user presses a button, they are not taken to this page, but /project/ instead, which raises a 404 error because this page isn't defined in my URLConf. I am a complete Django newbie so if somebody could explain to me why this is happening and how I can fix it I would be very grateful. Thank you.


