Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 June 21, 2010 05:32:52

t.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Django templates and libraries


Hello, I'm trying to setup an existing Django site up on WebFaction.
I've uploaded the code and installed the libraries, but I'm having
trouble getting the site to use my libraries. I've figured out that
when I installed libraries with easy_install, they were installed to /
home/jhumunc/lib/python2.5 instead of /home/jhumunc/webapps/jhumunc/
lib/python2.5 and I found a recommendation to copy all the eggs from
to the latter directory but I don't know if this actually helped at
all. I've also added some of the template directories from within the
eggs to my settings.py file. I'm trying to get the page athttp://www.jhumunc.webfactional.com/accounts/register/to work
properly. The pages uses the forms library and I've made sure that the
library is on the template_dirs list in the settings.py file (/home/
jhumunc/webapps/jhumunc/lib/python2.5/django_forms-0.5-py2.5.egg/forms/
templates). However, when I load the page, it's saying that it can't
find the templatetags that correspond to that template. I know the
correct directory to look in is /home/jhumunc/webapps/jhumunc/lib/
python2.5/django_forms-0.5-py2.5.egg/forms/templatetags but I can't
figure out where to specify this.

Any help would be appreciated. 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 email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 June 21, 2010 09:09:30

s.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Django templates and libraries


i think i'd be right in saying that template tags are different to the
eggs issue.
i found a post on b-list which explained templatetags and where to put
them.http://www.b-list.org/weblog/2007/dec/04/magic-tags/so pretty much always drop the tags inside a folder named templatetags
in your app folder.
have you done that?

Matt

On Jun 20, 11:34 pm, tanman <tanmay.gokh...@gmail.com> wrote:
> Hello, I'm trying to setup an existing Django site up on WebFaction.
> I've uploaded the code and installed the libraries, but I'm having
> trouble getting the site to use my libraries. I've figured out that
> when I installed libraries with easy_install, they were installed to /
> home/jhumunc/lib/python2.5 instead of /home/jhumunc/webapps/jhumunc/
> lib/python2.5 and I found a recommendation to copy all the eggs from
> to the latter directory but I don't know if this actually helped at
> all. I've also added some of the template directories from within the
> eggs to my settings.py file. I'm trying to get the page
> athttp://www.jhumunc.webfactional.com/accounts/register/towork
> properly. The pages uses the forms library and I've made sure that the
> library is on the template_dirs list in the settings.py file (/home/
> jhumunc/webapps/jhumunc/lib/python2.5/django_forms-0.5-py2.5.egg/forms/
> templates). However, when I load the page, it's saying that it can't
> find the templatetags that correspond to that template. I know the
> correct directory to look in is /home/jhumunc/webapps/jhumunc/lib/
> python2.5/django_forms-0.5-py2.5.egg/forms/templatetags but I can't
> figure out where to specify this.
>
> Any help would be appreciated. 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 email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 19th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support