pinax / pinax-submissions

an app for proposing and reviewing submissions
MIT License
12 stars 4 forks source link

where are the templates #7

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi I just did a fresh install of

pinax-account and pinax-submissions

When I got to http://localhost:8000/submissions/submit/ it says that all the templates are missing, which is kind of true.

Request Method: GET
Request URL:    http://localhost:8000/submissions/submit/
Django Version: 1.11.5
Exception Type: TemplateDoesNotExist
Exception Value:    
pinax/submissions/submission_submit.html, submissions/submissionkind_list.html
Exception Location: /mnt/FILES/CODE/django/symposion/mysiteenv/local/lib/python2.7/site-packages/django/template/loader.py in select_template, line 53
Python Executable:  /mnt/FILES/CODE/django/symposion/mysiteenv/bin/python
Python Version: 2.7.12
Python Path:    
['/mnt/FILES/CODE/django/symposion/mab18',
 '/mnt/FILES/CODE/django/symposion/mysiteenv/lib/python2.7',
 '/mnt/FILES/CODE/django/symposion/mysiteenv/lib/python2.7/plat-x86_64-linux-gnu',
 '/mnt/FILES/CODE/django/symposion/mysiteenv/lib/python2.7/lib-tk',
 '/mnt/FILES/CODE/django/symposion/mysiteenv/lib/python2.7/lib-old',
 '/mnt/FILES/CODE/django/symposion/mysiteenv/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/mnt/FILES/CODE/django/symposion/mysiteenv/local/lib/python2.7/site-packages']
Server time:    Sat, 9 Jun 2018 16:02:08 +0000
KatherineMichel commented 6 years ago

Hi @jucajuca. We use npm to manage front-end dependencies now. Following the npm guidance might solve the problem. Pinax has also switched from bootstrap to semantic Pinax templates. The templates should be installed in the packages directory as part of the npm process if listed as a dependency. Also, before deployment you might need to run ./manage.py collectstatic https://github.com/pinax/pinax/blob/adding-npm-guidance/docs/quick_start.md

ghost commented 6 years ago

Hi @KatherineMichel thanks for the info! Unfortunately, it appears that pinax-templates does not yet support pinax-submissions. I've tried to find some basic templates for submission to get oriented. Are they somewhere else? thx

KatherineMichel commented 6 years ago

@jucajuca Unfortunately, it looks like there are not any templates, or at least not made public. Sometimes it's possible to do a GitHub search for third-party sites that might have used a Pinax app, but I do not see any that use Pinax submissions. Eldarion has used pinax-submissions in client work, but not sure if any plan to open source additional templates such as these. You can see templates required by going through views. https://github.com/pinax/pinax-submissions/blob/master/pinax/submissions/views.py