Coder Social home page Coder Social logo

Comments (6)

iurisilvio avatar iurisilvio commented on July 3, 2024

I had this issue too. The first time you run django syncdb, it asks you to create a default site. If you skip this step, you get this bug.

from www.freedomsponsors.org.

kinow avatar kinow commented on July 3, 2024

@tonylampada, what @iurisilvio said is right, I believe when I run syncdb it showed some warnings... not sure if it asked me to create a default site though... But probably I missed a step somewhere in the set up.

from www.freedomsponsors.org.

tonylampada avatar tonylampada commented on July 3, 2024

I tried reproducing it by running syncdb and migrate.sh on an empty db.
During syncdb, django asks if i want to create a super user and I answer no.
I dont get any errors regarding the Site entity.

There's a south migration that was supposed to create the site, and it works for me.

Maybe there's something different in your environments that makes it look for a site before that migration is ran?

from www.freedomsponsors.org.

iurisilvio avatar iurisilvio commented on July 3, 2024

When I did it, I changed the database to sqlite, so it was probably some incompatibility with south migration. =)

from www.freedomsponsors.org.

henriquebastos avatar henriquebastos commented on July 3, 2024

Syncdb will crash if you create a superuser. Then when running migrations it will crash again when trying to update the site values. I detected this while setting up a dev environment.

from www.freedomsponsors.org.

tonylampada avatar tonylampada commented on July 3, 2024

I tested database creation on mysql and with ./manage.py syncdb --migrate --noinput (which doesn't prompt for superuser creation) and got no errors.
Maybe #146 fixed this, so I'm closing it.

from www.freedomsponsors.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.