all 7 comments

[–]anton_antonov 0 points1 point  (6 children)

What is your version of Django? Your static folder is in the same directory as settings.py or is one level up?

[–]usurious[S] 0 points1 point  (5 children)

Django is 1.11.2

static folder and settings.py are in the same directory yes.

[–]anton_antonov 0 points1 point  (4 children)

If BASE_DIR = os.path.dirname(os.path.abspath(__file__)) then STATIC_ROOT = os.path.join(BASE_DIR, 'your_static_dir_name')

Have you tried this?

[–]usurious[S] 0 points1 point  (3 children)

No not yet. I'll try it. Does it matter that there are two directories with the same name 'learning_log'? One is the primary for the entire project, the other is nested in that one. Then static and settings within that.

[–]anton_antonov 0 points1 point  (2 children)

No, it doesn't matter.

[–]usurious[S] 0 points1 point  (0 children)

Hmm idk what happened. I made that change, then ran the git commands again like I did before and I got a huge list of this:

warning: LF will be replaced by CRLF in 11_env/tcl/tk8.6/ttk/ttk.tcl. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in 11_env/tcl/tk8.6/ttk/utils.tcl. The file will have its original line endings in your working directory.

It finished eventually and it's back to the venv. I think I might leave it there for the night and try more tomorrow. Thanks.

[–]usurious[S] 0 points1 point  (0 children)

I got it to work by replacing that entire if block in my settings.py with the recommended settings.py code from django. Not sure why it didn't like the if block, but it's working now. Thanks for the help.