login community faq

I just followed the tutorial at http://docs.webfaction.com/software/django/getting-started.html to run my blog on my server and got this error while trying to add an item in the admin section.

The error is coming on the line :

1
<script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script>

It's working fine on my local machine.

Any solutions?

asked Sep 03 '12 at 00:17

Aventus's gravatar image

Aventus
1

A couple of questions to help us assess the problem a bit better:

  • Are you running the same version of Django locally? (This looks like a version mismatch problem).
  • If you try running the site using the Django development server instead of mod_wsgi, do you get the same error?
(Sep 03 '12 at 00:30) ryans ♦♦ ryans's gravatar image

Hi ryans,

I'm running 1.5.x on my local machine I'm not able to bind the django server to a different port other than 8000 and I can't seem to get access to that particular server.

So, I'm guessing it's a version issue? I'll try writing something simple with the running version and see if I get the error again.

(Sep 03 '12 at 00:47) Aventus Aventus's gravatar image

Django code which is designed for Django version 1.5 will not run under Django 1.4.1, which is the current latest stable Django installed into new Django applications by default. If you're using this, you'll want to install a mod_wsgi application and then install the latest django libraries manually.

As for binding to another port, the python2.7 manage.py runserver 12345 command would run the development server on port 12345. You generally should be able to run this on any port that you need to.

(Sep 03 '12 at 00:52) ryans ♦♦ ryans's gravatar image

Hi ryans,

Thanks for the reply. Yes, I'm currently working on the remote machine (gives me a chance to revise django!).

I tried doing that but it kept on giving me a message saying that it couldn't do that. It was only able to bind it to the default 8000.

(Sep 03 '12 at 00:57) Aventus Aventus's gravatar image

That's certainly odd that runserver cannot bind on other ports. If you'd like us to take a closer look, just open a support ticket and let us know.

(Sep 03 '12 at 01:10) ryans ♦♦ ryans's gravatar image

The issue has been resolved thanks to ryan's advice about conflicting versions.

Thanks!

answered Sep 03 '12 at 01:52

Aventus's gravatar image

Aventus
1

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×643

Asked: Sep 03 '12 at 00:17

Seen: 872 times

Last updated: Sep 03 '12 at 01:52

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited