I am trying to make a portal where I take landing page template from different users and check manually that template is working file or not. If everything looks good then I want to upload that theme from my django admin panel which create a new folder for every template like in this case its […]
- Tags ... ] ... STATIC_ROOT = os.path.join(BASE_DIR, 'assets') MEDIA_URL = 'static/' MEDIA_ROOT = (os.path.join(BASE_DIR, currently this is what I have. STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, filename): if not instance.pk: # get count of all object, I am trying to make a portal where I take landing page template from different users and check manually that template is working file or not., so is will be unique number = instance.__class__.objects.count() + 1 else: number = instance.pk # replace filename to a, static, template/theme/template1/index.html folder and also same with static files I want to upload zip file for all folders of static file and what, where I am doing wrong ? def index_path_upload(instance