Sunday, December 27, 2015

settings.py variables in fixtures

hi to everyone

i'm newbye in django, but i really appreciate this useful framework. I have a simple question but i don't know if is appropriate.

i have a fixture written in JSON and i use it to provide initial data to my webapp. i want to provide in this fixture absolute paths in order to store some images..... is there a way to use in JSON fixtures (or in another format) variables defined in settings.py (eg. base path of the app)?

thanks in advance

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e10405bd-994b-41db-b076-d028206ca25d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment