Coder Social home page Coder Social logo

django-easytz's People

Contributors

jamesmfriedman avatar sauramirez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

django-easytz's Issues

foreign-key relationships require on_delete advice in django 2

  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "env/lib/python3.5/site-packages/easytz/models.py", line 20, in <module>
    class TimezoneStore(models.Model):
  File "env/lib/python3.5/site-packages/easytz/models.py", line 24, in TimezoneStore
    user = models.OneToOneField(User, related_name = 'timezone')
TypeError: __init__() missing 1 required positional argument: 'on_delete'

Django 1.7 issue

I get the following error after upgrading to Django 1.7

File "C:\Users\ve\lib\site-packages\easytz\models.py", line 8, in
User = get_user_model()
File "C:\Users\ve\lib\site-packages\django\contrib\auth__init__.py", line 137, in get_user_model
return django_apps.get_model(settings.AUTH_USER_MODEL)
File "C:\Users\ve\lib\site-packages\django\apps\registry.py", line 199, in get_model
self.check_models_ready()
File "C:\Users\ve\lib\site-packages\django\apps\registry.py", line 131, in check_models_ready
raise AppRegistryNotReady("Models aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.

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.