Re: Sharing templates across multiple projects

2015-03-09 Thread JHeasly
Thanks for the feedback Simon & Ilya.

I've done submodules in Git before, but I think I'll keep the templates in 
a separate repo and symbolic link to the repo ... 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c9d516db-43df-48f7-819f-41496b51b9c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Sharing templates across multiple projects

2015-03-06 Thread Ilya Kazakevich
I like Simon's ideas about shared location and separate app (Django 
encourages us to use apps to share anything), but you also may share them 
on VCS level. SVN supports "external" checkout, in git you may add one 
repository to another. 

\project1\templates\shared_temps
\project2\templates\shared_temps

"shared_temps" in both cases is just a repository (folder with .git 
subfolder). So, you commit in one folder, push, and pull in all other 
projects.


On Friday, March 6, 2015 at 5:24:04 AM UTC+3, JHeasly wrote:
>
> Hello —
>
> I'm looking for any blogposts/best practices for deploying a common set of 
> templates across multiple Django projects.
>
> My initial impulse is to just make a master Github repo of the template 
> and pull it into each of the projects. Are there better approaches?
>
> TIA,
> John
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9884c3d6-9bc6-4b87-95ef-b4fbbd28f793%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Sharing templates across multiple projects

2015-03-06 Thread Simon Charette
Hi John,

I suggest you put the templates you want to share in a location accessible 
by your multiple projects and add this directory to your TEMPLATE_DIRS 
 
setting.

Make sure you have 'django.template.loaders.filesystem.Loader' in your 
TEMPLATE_LOADERS 
 
setting.

You could also make a third-party Django application only containing a 
"templates" directory and install it in all you projects and use the 
'django.template.loaders.app_directories.Loader' loader.

Simon

Le jeudi 5 mars 2015 21:24:04 UTC-5, JHeasly a écrit :
>
> Hello —
>
> I'm looking for any blogposts/best practices for deploying a common set of 
> templates across multiple Django projects.
>
> My initial impulse is to just make a master Github repo of the template 
> and pull it into each of the projects. Are there better approaches?
>
> TIA,
> John
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e9e2eead-b79b-42d2-9e9b-e2507aa942bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sharing templates across multiple projects

2015-03-06 Thread JHeasly
Hello —

I'm looking for any blogposts/best practices for deploying a common set of 
templates across multiple Django projects.

My initial impulse is to just make a master Github repo of the template and 
pull it into each of the projects. Are there better approaches?

TIA,
John

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/59566fdb-8e41-42c9-a121-f0c303b41412%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.