Re: Is it possible to create website like Squarespace or Wix in django?

2013-04-20 Thread Kakar Arunachal Service
Thank u so much! Now i know django is my way to go.


On Sun, Apr 21, 2013 at 10:28 AM, Shawn Milochik  wrote:

> I don't think there's any kind of site you *can't* make with Django. It's
> a Web framework, not a CMS.
>
> It's definitely possible (and trivial) to offer a wide variety of
> templates. It's also possible to allow a user to customize and save a
> template, but that comes with a whole host of security risks you'll have to
> consider.
>
> The CSS is a slightly different matter, as Django is not in the business
> of serving static content. However, if you're already customizing HTML
> templates you can customize some CSS there. For that matter, you could
> allow them to change the CSS link in the template to one of many choices
> you provide, or to their own server/CDN. Again, that's probably a bad idea
> for various security reasons, although technically possible.
>
>
>
>
>  --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: logging within celery processes

2013-04-20 Thread Shawn Milochik
I don't know the solution, but we had the same problem. We ended up dumping
Celery in favor of rq. It's much easier to work with and we were already
using Redis as a back-end.

If you do figure out the solution to this, please post it here. Also,
consider rq. We used Celery quite a bit and the changeover was fairly
simple.

For the record, the logging was not the main reason we dumped Celery.
Workers were also mysteriously locking up for some reason, and we couldn't
narrow it down to any of our tasks, nor even the async versus the
cron-style tasks. This is after running Celery for over two years on the
same server so it could be due to the evolution of our codebase rather than
Celery, but we wasted too many hours on it to want to deal with it.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Is it possible to create website like Squarespace or Wix in django?

2013-04-20 Thread Shawn Milochik
I don't think there's any kind of site you *can't* make with Django. It's a
Web framework, not a CMS.

It's definitely possible (and trivial) to offer a wide variety of
templates. It's also possible to allow a user to customize and save a
template, but that comes with a whole host of security risks you'll have to
consider.

The CSS is a slightly different matter, as Django is not in the business of
serving static content. However, if you're already customizing HTML
templates you can customize some CSS there. For that matter, you could
allow them to change the CSS link in the template to one of many choices
you provide, or to their own server/CDN. Again, that's probably a bad idea
for various security reasons, although technically possible.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Is it possible to create website like Squarespace or Wix in django?

2013-04-20 Thread Kakar
Hello everyone! I am really a newbie in the django world, and it might be 
to much to ask now this question, but am just curious. So, is it possible 
to make websites like Squarespace or wix where the user can itself choose 
the template or customize it later on, and also that a programmer can 
change the the css too. Please comment your views. Thanks.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




logging within celery processes

2013-04-20 Thread Mike
I'm trying to get logging to work from within my celery process.  I have 
set:
CELERY_SEND_TASK_ERROR_EMAILS = True
in settings.py

within the process I am logging to level INFO:

logger.info('some info')

I launch the process using supervisor:

python manage.py celery worker --loglevel=ERROR

The problem is, I'm getting emails from the INFO level messages even though 
I specified ERROR on the command line.  Is this a bug?

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How many workers do you run on one machine using django celery?

2013-04-20 Thread Kurtis Mullins
Both Michael and Shawn are spot-on in terms of scaling and using the
queuing.

However, I'd like to add that 5 seconds to complete a single task like this
seems way too slow to me. I don't have much experience with sending SMS but
if you're using an external SMS API, it should be extremely quick. I
imagine it's something along the lines of just a simple HTTP Request and
checking the response to make sure the request was successfully accepted.
Manually test this to see how long it takes from your own computer. If it
is very quick, check for bottlenecks elsewhere. Without knowing the
implementation details of your system there's not much more I could suggest
checking into.


On Sat, Apr 20, 2013 at 11:40 PM, Shawn Milochik  wrote:

> In addition to Michael's good comments:
>
> I suspect you won't have 100,000 tasks coming in every second of every
> day. If you have to send out SMS messages and some of them take a few
> minutes to go out, that should be fine for most purposes. In addition, some
> SMS services have some limit per minute/hour for the number of messages you
> can send. If so, you'll be forced to queue them regardless and trickle out
> the sending.
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How many workers do you run on one machine using django celery?

2013-04-20 Thread Shawn Milochik
In addition to Michael's good comments:

I suspect you won't have 100,000 tasks coming in every second of every day.
If you have to send out SMS messages and some of them take a few minutes to
go out, that should be fine for most purposes. In addition, some SMS
services have some limit per minute/hour for the number of messages you can
send. If so, you'll be forced to queue them regardless and trickle out the
sending.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How many workers do you run on one machine using django celery?

2013-04-20 Thread Michael Hernandez
RabbitMQ with Celery is a distributed asynchronous code execution service. 
Keyword Distributed. The best thing to do in run several instances per 
machine of djcelery behind a supervisord. When you start encountering 
performance hits start by adding more services on the machine with 
supervisord. You will hit a limit at some point where you wont see any 
increase in performance from this. It is at this point that i suggest you 
scale down the amount of services on that machine and add another  machine 
to the rabbit stack with the same configuration. RabbitMQ should handle the 
load balancing itself. However it is at this point i believe that logging 
will become more difficult. So be sure to have a solution in place for 
handling that. 

You should also look into batching your processes among tasks, if you are 
going to be running so many tasks, than cant a task hold the last 10 sms 
messages to be sent out and send all 10 of them. This will improve 
scalability as well.



On Saturday, April 20, 2013 7:28:55 PM UTC-4, sparky wrote:
>
> Quick question, just so I can compare, I would really like to hear other 
> devs experience. 
>
> *How many workers do you run on one machine using django celery?*
>
> I'm running 3 workers on an EC2 small instance. It takes around 5 seconds 
> to complete 1 task running all 3 workers, does this sound right to you?
>
> My issue is I could have 100,000 tasks very soon... scale wise I'm unsure 
> what I'm going to need to do this. Bigger CPU, RAM and X workers, 5 seconds 
> is far too long for me. All the task is doing is sending a SMS message HTTP 
> thats it.
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: IDE to practice django template language

2013-04-20 Thread sparky
I second PyCharm, I'm new to Django too it works well for me :)

On Friday, April 19, 2013 2:03:19 AM UTC+1, Srinivasa Rao wrote:
>
> Hi, I am new to this djnago, can you suggest any 
> development environment to practice template language. thanks,Srini

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How many workers do you run on one machine using django celery?

2013-04-20 Thread sparky
Quick question, just so I can compare, I would really like to hear other 
devs experience. 

*How many workers do you run on one machine using django celery?*

I'm running 3 workers on an EC2 small instance. It takes around 5 seconds 
to complete 1 task running all 3 workers, does this sound right to you?

My issue is I could have 100,000 tasks very soon... scale wise I'm unsure 
what I'm going to need to do this. Bigger CPU, RAM and X workers, 5 seconds 
is far too long for me. All the task is doing is sending a SMS message HTTP 
thats it.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: IDE to practice django template language

2013-04-20 Thread yati sagade
I would suggest the OP to gather from this thread that a reaching general
consensus about this topic is impossible, and would request others to stop
the thread here, as there's no point continuing except that the OP might
possibly come to know about stuff they previously did not, but the Web is
full of that(and I'm sure there have been threads here previously) - Don't
get me wrong here, we just won't agree on what is best, because what is
best for me might not be the best for others :)

 @OP, you really don't need a separate IDE/editor for the template language
- use whatever you are comfortable with, and keep trying various
editors/IDEs. I know how it is to be bogged down by so many choices when
you're starting out. Just use whatever you like :)


On Sat, Apr 20, 2013 at 9:52 PM, Michael Hernandez <
michael.hernandez1...@gmail.com> wrote:

> Emacs???. IM not being a smart ### . I just feel it has everything you
> need. Like terminal Shell. It is bad for multiethnic files like html with
> Javascript in it. Unless you customize it further
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
Yati Sagade

Software Engineer at mquotient 


Twitter: @yati_itay  | Github:
yati-sagade

Organizing member of TEDx EasternMetropolitanBypass
http://www.ted.com/tedx/events/4933
https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




IDE to practice django template language

2013-04-20 Thread Michael Hernandez
Emacs???. IM not being a smart ### . I just feel it has everything you need. 
Like terminal Shell. It is bad for multiethnic files like html with Javascript 
in it. Unless you customize it further

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: defining guid, permalink for feeds and site

2013-04-20 Thread Michael Hernandez
Yes that is a great idea.

create a base model that inherits from models.Model

add the method into it.

Any model that can be slugified and access directly should inherit from this

Make sure to use model.pk in building the slug, it will always be the 
primary key, rather than model.id which could change model to model

If you want to get all the child relationships permalinks then all you have 
to do is recurse through the managers calling the func.

All in all i think you have the right frame of mind so this isnt real an 
asnwer rather more of a +1


On Saturday, April 20, 2013 10:41:26 AM UTC-4, surya wrote:
>
> In our website, for short urls we are using a different domain name.. 
>
> So, get_absolute_url() in model methods uses 
> django.core.urlresolvers.reserve() and thus returns the actual domain name
>
> Till now we have been manually defining short urls in views like
>
> permalink = settings.SPC['short_URL_root'] + str(submission.id) + '/' + \
>   str(revision.rev_id+1) + 
> '/'
>
> settings.SPC['short_url_root'] is short-url domain name
>
> Since I feel this method inconsistent I would like to define a model 
> method like below
>
> from django.conf import settings
> def permalink(self):
> return settings.SPC['short_URL_root'] + '/%d/%s' %(self.entry.pk, 
> self.rev_id+1)
>
> Would it be a nice idea..
>
> The whole point of defining such a model method helps me returning 
> "item_guid" in feed syndication. something like this:
>
> def item_guid(self, item):
>   return item.permalink()
>
>
> Would it be a nice idea to define such a model method? 
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




defining guid, permalink for feeds and site

2013-04-20 Thread surya
In our website, for short urls we are using a different domain name.. 

So, get_absolute_url() in model methods uses 
django.core.urlresolvers.reserve() and thus returns the actual domain name

Till now we have been manually defining short urls in views like

permalink = settings.SPC['short_URL_root'] + str(submission.id) + '/' + \
  str(revision.rev_id+1) + 
'/'

settings.SPC['short_url_root'] is short-url domain name

Since I feel this method inconsistent I would like to define a model method 
like below

from django.conf import settings
def permalink(self):
return settings.SPC['short_URL_root'] + '/%d/%s' %(self.entry.pk, 
self.rev_id+1)

Would it be a nice idea..

The whole point of defining such a model method helps me returning 
"item_guid" in feed syndication. something like this:

def item_guid(self, item):
  return item.permalink()


Would it be a nice idea to define such a model method? 

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't enter admin site

2013-04-20 Thread Michael Hernandez
Tom is right URL regexp is one of the more difficult aspects a feel for 
beginners. 
^ means to match the following characters at the start of the haystack
r"^"
will properly match "/admin" "/static" "/joogabooga/realm/1?x=1"

however if you are having trouble with figuring out the regexp 

there is a interim fix for getting started as soon as possible, move your 
more complex urls to the top, urls.py is a top down match first

so instead of [
  r"^$", 
  r"^admin"
]

try  [
  r"^admin",
  r"^$"
] 



On Friday, April 19, 2013 11:46:56 AM UTC-4, Tom Evans wrote:
>
> On Fri, Apr 19, 2013 at 4:17 PM, Alex Lee > 
> wrote: 
> > Hi guys, I just started the second tutorial! I'm trying to connect to 
> the 
> > admin site, but when I go to http://127.0.0.1:8000/admin after I 
> runserver, 
> > I get the same "Welcome to django!" screen that I get if I would just 
> > connect to http://127.0.0.1:8000/. The tutorial says that the admin 
> site is 
> > activated by default, but I can't access it. Is there something I'm 
> doing 
> > wrong, or is there some way I can force the admin site up? 
>
> If you get exactly the same page for '/admin/' as you do for '/', 
> check that your urls.py is specified correctly. It will stop at the 
> first match, if the first view listed matches any string, you will 
> always get that view. 
>
> Eg, if you accidentally changed the regexp from "^$" to "^", then 
> every url will match that regexp. 
>
> Cheers 
>
> Tom 
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Add user to authors on model save in admin form

2013-04-20 Thread Michael Hernandez
I do not think having Author = model.ManyToMany will work.
A user is an author. An author is a user. This is a one to one  a.k.a 
models.ForeignKey(User)
A blog has many authors, of which each is a user. And Many Authors can 
write on a blog 

Blog.author = models.ManyToMany(Author)

On Friday, April 19, 2013 12:22:02 PM UTC-4, Laurent GARTNER wrote:
>
> Hi,
>
> I’m in trouble with model admin.
>
> I’ve create a CMS with Django and I try to add the last article editor, 
> but it doesn’t work if the user don’t add his name in the field.
>
> In model.py
>
> class Article(models.Model):
>
> …
>
> author = models.ManyToManyField(User, 
> verbose_name=u”auteur”, null=True, blank=True)
>
> author_text = models.CharField(u’auteurs’, null=True, 
> blank=True, max_lenght=254)
>
>  
>
> Note: author keeps real “author” of the aritcle, author_text is editable 
> to show another “author”
>
>  
>
>def *save*(*self*, *args, **kwargs):
>
>  
>
>  # Si author_text est vide, le remplir avec l'auteur
>
>  if not *self*.author_text and *self*.id:
>
> author_text = list()
>
> for author in *self*.author.all():
>
>if author.first_name or author.last_name:
>
>   author_name = *" "*.join([author.last_name, 
> author.first_name])
>
>else:
>
>   author_name = author.username
>
>author_text.append(author_name)
>
> *self*.author_text = *", "*.join(author_text)
>
> In admin.py
>
>  
>
>def *save_model*(*self*, request, obj, form, change):
>
>  
>
>  # Première sauvegarde pour attribuer un ID indispensable à 
> un M2M
>
>  obj.save()
>
>  super(ArticleAdmin, *self*).save_model(request, obj, form, 
> change)
>
>  
>
>  # Ajout de l'auteur à la liste
>
>  if not request.user in obj.author.all() or obj.author.all() 
> == None:
>
> obj.author.add(request.user)
>
> obj.save()
>
>  
>
> When I create a new article in admin site, author_text gets author 
> username (as I expect with my save model), but author stay empty ! If I 
> look at the article during “save_model”, author get the user, but after 
> “save”, author is null (as in form).
>
> How can I force author field to record the last author ? can I update 
> admin form with a default author value ?
>
>  
>
> Thanks for the answer
>
> Garthh
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help with integration of bootstrap and Django 1.4.3

2013-04-20 Thread Michael Hernandez
Yes. Proper root referencing requires the preceeding / in /a/b

The django way i have seen is to generally create a /static/ directory
Put  /static in your static settings rather than /static/assets

place your files in respectively named  directories such as /static/js 
/static/css /static/images /static/html  etcetera

On Saturday, April 20, 2013 4:11:40 AM UTC-4, Sanjay Bhangar wrote:
>
> On Sat, Apr 20, 2013 at 10:43 AM, Paras Nath Chaudhary <
> opncha...@gmail.com > wrote:
>
>> How I do this is in settings.py:
>> PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
>> STATIC_ROOT = os.path.join(PROJECT_ROOT, '../static')
>> STATIC_URL = '/static/'
>> STATICFILES_DIRS = (
>> # Put strings here, like "/home/html/static" or 
>> "C:/www/django/static".
>> # Always use forward slashes, even on Windows.
>> # Don't forget to use absolute paths, not relative paths.
>> os.path.join(PROJECT_ROOT,'../static/assets'),
>> )
>>
>>
>> In template files. 
>>  > media="screen">
>>
>>
> Shouldn't that be:
>   media="screen">
>
> ( /static/ ... instead of static/ ... )
>
> If its missing the initial slash, the link would be relative to the 
> current page, which would be fine at http://yourdomain.com or 
> http://yourdomain.com/foo but would break if you were linking from 
> http://yourdomain.com/foo/bar .. 
>
> -Sanjay
>  
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help with integration of bootstrap and Django 1.4.3

2013-04-20 Thread Paras Nath Chaudhary
Yeah Sanjay you're right. my mistake that should be ( /static/ ... instead 
of static/ ... ) for 
  

>  
Thanks for correcting me. 

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help with integration of bootstrap and Django 1.4.3

2013-04-20 Thread Sanjay Bhangar
On Sat, Apr 20, 2013 at 10:43 AM, Paras Nath Chaudhary <
opnchaudh...@gmail.com> wrote:

> How I do this is in settings.py:
> PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
> STATIC_ROOT = os.path.join(PROJECT_ROOT, '../static')
> STATIC_URL = '/static/'
> STATICFILES_DIRS = (
> # Put strings here, like "/home/html/static" or "C:/www/django/static".
> # Always use forward slashes, even on Windows.
> # Don't forget to use absolute paths, not relative paths.
> os.path.join(PROJECT_ROOT,'../static/assets'),
> )
>
>
> In template files.
>  
>
>
Shouldn't that be:
 

( /static/ ... instead of static/ ... )

If its missing the initial slash, the link would be relative to the current
page, which would be fine at http://yourdomain.com or
http://yourdomain.com/foo but would break if you were linking from
http://yourdomain.com/foo/bar ..

-Sanjay

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.