Coder Social home page Coder Social logo

Comments (3)

forrestly avatar forrestly commented on June 28, 2024

here is the error message when I run createdb command:

C:\Python27\lib\site-packages\mezzanine\utils\conf.py:65: UserWarning: You haven't defined the ALLOWED_HOSTS settings, which Django requires. Will fall back to the domains configured as sites.
warn("You haven't defined the ALLOWED_HOSTS settings, which "
Traceback (most recent call last):
File "manage.py", line 14, in
execute_from_command_line(sys.argv)
File "C:\Python27\lib\site-packages\django\core\management_init_.py", line 364, in execute_from_command_line
utility.execute()
File "C:\Python27\lib\site-packages\django\core\management_init_.py", line 338, in execute
django.setup()
File "C:\Python27\lib\site-packages\django_init_.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Python27\lib\site-packages\django\apps\registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "C:\Python27\lib\site-packages\django\apps\config.py", line 94, in create
module = import_module(entry)
File "C:\Python27\lib\importlib_init_.py", line 37, in import_module
import(name)
File "C:\Python27\lib\site-packages\django_filters_init_.py", line 4, in
from .filterset import FilterSet
File "C:\Python27\lib\site-packages\django_filters\filterset.py", line 184
def init(self, data=None, queryset=None, *, request=None, prefix=None):
^
SyntaxError: invalid syntax

from mezzanine-api.

gcushen avatar gcushen commented on June 28, 2024

I see that you are using Python 2 which is unsupported (but may possibly still work).

The error can probably be resolved by defining ALLOWED_HOSTS in your config based on your domain name. This setting is specific to how you are hosting the API. See the mezzanine forums for further support configuring the API.

from mezzanine-api.

forrestly avatar forrestly commented on June 28, 2024

from mezzanine-api.

Related Issues (14)

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.