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

  • SEARCH
  • Home
  • 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 698589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:17:31+00:00 2026-05-14T03:17:31+00:00

My project is in early development. I frequently delete the database and run manage.py

  • 0

My project is in early development. I frequently delete the database and run manage.py syncdb to set up my app from scratch.

Unfortunately, this always pops up:

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): 

Then you have supply a username, valid email adress and password. This is tedious. I’m getting tired of typing test\nx@x.com\ntest\ntest\n.

How can I automatically skip this step and create a user programatically when running manage.py syncdb ?

  • 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-14T03:17:31+00:00Added an answer on May 14, 2026 at 3:17 am

    I know the question has been answered already but …

    A Much simpler approach is to dump the auth module data into a json file once the superuser has been created:

     ./manage.py dumpdata --indent=2 auth > initial_data.json
    

    You can also dump the sessions data:

    ./manage.py dumpdata --indent=2 sessions
    

    You can then append the session info to the auth module dump (and probably increase the expire_date so it does not expire… ever ;-).

    From then, you can use

    /manage.py syncdb --noinput
    

    to load the superuser and his session when creating the db with no interactive prompt asking you about a superuser.

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

Sidebar

Related Questions

I've set up ActiveAdmin early in my project and used the default admin_users model
I am early in development on a new ASP.Net MVC project and I using
In early phases of software development projects the conceptual data model is designed. In
We're in an early stage of a new web project. The project will grow
We have a git project which has quite a big history. Specifically, early in
The web service endpoint usually is defined in an early stage of a project.
I'm trying to setup my first Rails3 project and, early on, I'm running into
Good afternoon, I am currently in the very early phase of a new project
In the early stages of a project when lots of files are being added
I'm at the very early stages of a project requiring the broadcasting, using RTP,

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.