pinax / pinax-starter-projects

Pinax Starter Projects
MIT License
81 stars 39 forks source link

missing files in fresh installation #49

Closed ghost closed 6 years ago

ghost commented 6 years ago

after installing pinax as described here I started the server and I got the following errors:

[13/Sep/2017 14:11:26] "GET /account/login/ HTTP/1.1" 200 4570 [13/Sep/2017 14:11:26] "GET /site_media/static/css/app.css HTTP/1.1" 404 1668 [13/Sep/2017 14:11:26] "GET /site_media/static/pinax/js/theme.js HTTP/1.1" 304 0 [13/Sep/2017 14:11:26] "GET /site_media/static/js/site.js HTTP/1.1" 404 1665

paltman commented 6 years ago

Sorry, that documentation has gotten out of date. :/

Please use the pinax-cli as described here: http://pinaxproject.com/pinax/pinax_starter_projects/

There is currently some in progress work on that branch and the pinax command line will let you get last working version.

ghost commented 6 years ago

Thanks I followed the instructions in that page for project project social-auth I got the same errors.

[15/Sep/2017 08:15:55] "GET /site_media/static/js/site.js HTTP/1.1" 404 1665 [15/Sep/2017 08:15:55] "GET /site_media/static/pinax/js/theme.js HTTP/1.1" 304 0 [15/Sep/2017 08:15:55] "GET /site_media/static/css/app.css HTTP/1.1" 404 1668 [15/Sep/2017 08:15:55] "GET /site_media/static/js/site.js HTTP/1.1" 404 1665

roperi commented 6 years ago

Me too, @jucajuca but for the 'account' project. :(

[29/Dec/2017 18:07:54] "GET /site_media/static/css/app.css HTTP/1.1" 404 1668
[29/Dec/2017 18:07:54] "GET /site_media/static/js/site.js HTTP/1.1" 404 1665
milven-domingos commented 6 years ago

im getting the same error too

milven-domingos commented 6 years ago

please can anyone help me

KatherineMichel commented 6 years ago

@milven-domingos This is something that needs to be fixed. In the meantime, I know that someone who had a similar problem located those files in a different folder (/static/dist in his case) and moved them to /site_media/static and that fixed the problem.

paltman commented 6 years ago

@jucajuca @h-2-0 @milven-domingos you guys are getting 404s after running npm run dev and opening http://localhost:3000/ in your browser?

paltman commented 6 years ago

It almost sounds like you are running with DEBUG = False and haven't run collectstatic

rich-in-dallas commented 6 years ago

I am also having the same issue. All configurations are looking for the app.css and the site.js I ran collectstatic;however, still no: /site_media/static/js/site.js /site_media/static/css/app.css

zahidaliyounis commented 6 years ago

Please try the following commands in order:

npm install npm run build ./manage.py collect static

Then run server as usual

liutianfang commented 6 years ago

same error

what project or module these two file belong? I can not find it in pinax projects

ghost commented 6 years ago

@paltman The solution of @zahidaliyounis should be added to the documentation. (or to the install script.)

npm install npm run build ./manage.py collectstatic

There wa a typo, correct command is collectstatic (no space)

paltman commented 6 years ago

the solution is really:

pip install -r requirements.txt npm install ./manage.py migrate npm run dev

which is already in the README

On Jun 9, 2018, at 10:24 AM, jucajuca notifications@github.com wrote:

@paltman The solution of @zahidaliyounis should be added to the documentation. (or to the install script.)

npm install npm run build ./manage.py collectstatic

There wa a typo, correct command is collectstatic (no space)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

paltman commented 6 years ago

The instructions should be the README of the project started using any of the templates in this repo.

You can find a copy of these instructions here:

https://github.com/pinax/pinax-starter-projects/tree/account#getting-started

Is this not working for anyone?

You should not be running collectstatic or moving static files around manually for local development.

KatherineMichel commented 6 years ago

I believe this issue can be closed bc/guidance now update to date in both README and main docs.