Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6859957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:20:55+00:00 2026-05-27T02:20:55+00:00

So I have a django development server that I want to be the backend

  • 0

So I have a django development server that I want to be the backend for my android app. For the time being, its I am just running the development server on my local machine.

I’ve been able to successfully retrieve data from the server, but I am now trying to POST data to the server through a JSON object, however I keep getting error code 403 in response. The method in my views.py file doesn’t even get called, it just automatically response with 403. Heres what the server response looks like in the terminal.

 [28/Nov/2011 17:58:40] "POST /createUser/ HTTP/1.1" 403 2326

Here is the url in my urls.py

 url(r'^createUser/$', 'mydb.views.createUser'),

But I am always getting this 403 error, does anyone know why?

Possibly also important:

when I remove django.contrib.auth and django.contrib.contenttypes from INSTALLED_APPS I get a different print out from the server in the terminal: (error code 500 instead)

 [28/Nov/2011 17:32:31] "POST /createUser/ HTTP/1.1" 500 82471

So I am thinking there is some sort of permissions issue going on.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:20:56+00:00Added an answer on May 27, 2026 at 2:20 am

    For a quick fix, try adding @csrf_exempt decorator to the view:

    from django.views.decorators.csrf import csrf_exempt
    
    @csrf_exempt
    def createUser(request):
    

    That said, for a back end API, definitely read up on CSRF

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've a django app that works perfectly under the django development server. I'm trying
I've got a django project working on a development server(ubuntu) that we have been
I have a Django project that works fine with the development server that comes
We have django 1.1.1 website, that works fine on development server (python manage.py runserver).
I have a development server running (and serving content) using the built in django
Every now and again, I need to start the Django development server, and have
I just started using django for development. At the moment, I have the following
I have a Django project that uses Celery for running asynchronous tasks. I'm doing
I am running the development version of Django and it appears that the filebrowser
I have multiple sites for the same client, on the same server, running django,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.