First off when I am trying to get my CSS going on my local laptop server I can seem to get the right code to get the CSS to load. I’ve gotten a 404 in the command prompt whenever it tries to load. The code that I’m currnelty using is <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}mycss.css" />
the second question I have is if there is a way to link to certain pages with a variable for the site name. So say i was coding a logout button. Instead of having <href="yoursite.com/logout"> I could have something like <href="{{sitename}}logout}}> or something along those lines.
For the first question: have you told the django development server to serve the static media for you? See the docs on how to set this up
Regarding the second question: I’m not sure why you would need to do this as all your links can just be
<a href="/logout">i.e. relative to your url but yes, you can use django sites framework to accomplish this.