|
Hi, I am creating a Django project. I've linked this to 'mysite.com/foo'. The first application I have enabled is the admin site. I left the admin at the default url, '^admin/'. Now, when I visit the admin page for my new site/project here: 'mysite.com/foo/admin' I get redirected to: 'mysite.com/admin/' ...and that URI yielded "Not Found". Since I couldn't get the admin page working by linking my new project with a URI, I decided to create a subdomain for my site: 'foo.mysite.com'. My thinking is, I won't have to worry about redirects or root URIs getting in the way. Unfortunately, when I visit 'foo.mysite.com' it can't be found. And when I visit 'foo.mysite.com/admin' it can't be found either. Any advice/hints? |
|
If you want to serve your app on a sub-path like mysite.com/foo, then you'll set If you want to use a subdomain, then it should just work, provided that the subdomain is valid. If your domain uses WebFaction's DNS servers, then the subdomain should begin working a few minutes after you assign it to your site in the control panel (it could take longer, it just depends on how long it takes for your resolving DNS servers to pick it up). If your domain does not use WebFaction's DNS servers, then you'll need to create the subdomain and corresponding A record via your domain registrar's control panel (in addition to creating it in WebFaction's control panel). Hope that helps! Thanks Seanf. I've never really been able to figure out whether I use WebFaction's DNS servers or not. I have a namecheap account. When I first signed up, I was able to add the subdomain "www" via my Webfaction control panel. Can you tell I don't know much about how DNS and all that other crap works? So, I added the 'foo' subdomain via my Webfaction control panel and it's finally working. This took about 2+ hours. I'm wondering why it takes so long but I guess that's on namecheap? Thanks again for your help! You're very welcome! |