Giter VIP home page Giter VIP logo

django_dbdev's People

Contributors

espenak avatar

Stargazers

 avatar

Watchers

 avatar  avatar

django_dbdev's Issues

Make python 3.11 compatible

Requirements

  • add importlib-metadata to pipfile to prevent sphinx and sphinx-rtd-theme giving warning Ignoring importlib-metadata: markers 'python_version < "3.10"' don't match your environment

Tests

Postgres

NOK dbdev_loaddump

  • OK dbdev_reinit
  • OK dbdev_serverinfo
  • OK dbdev_createdump
  • NOK dbdev_loaddump
  • OK runserver
  • OK migrate
  • OK createsuperuser
  • OK admin/

Missing guide template for postgisbackend

python manage.py dbdev_guide
System check identified some issues:

WARNINGS:
clooger_core.ContactPerson.company: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.
HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.

Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/Users/toij/.virtualenvs/clooger-django/lib/python2.7/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/Users/toij/.virtualenvs/clooger-django/lib/python2.7/site-packages/django/core/management/init.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/toij/.virtualenvs/clooger-django/lib/python2.7/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/Users/toij/.virtualenvs/clooger-django/lib/python2.7/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/Users/toij/.virtualenvs/clooger-django/lib/python2.7/site-packages/django_dbdev/management/commands/_base.py", line 24, in handle
self.dbdev_handle()
File "/Users/toij/.virtualenvs/clooger-django/lib/python2.7/site-packages/django_dbdev/management/commands/dbdev_guide.py", line 9, in dbdev_handle
self.stdout.write(self.dbdev_backend.guide())
File "/Users/toij/.virtualenvs/clooger-django/lib/python2.7/site-packages/django_dbdev/backends/base.py", line 119, in guide
'dbsettings': importlib.import_module(self.class.module).DBSETTINGS
File "/Users/toij/.virtualenvs/clooger-django/lib/python2.7/site-packages/django/template/loader.py", line 67, in render_to_string
template = get_template(template_name, using=using)
File "/Users/toij/.virtualenvs/clooger-django/lib/python2.7/site-packages/django/template/loader.py", line 25, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: django_dbdev/postgisbackend.rst

dbdev_loaddump behaves differently if the extension is not .dump on postgres

This is because of https://github.com/appressoas/django_dbdev/blob/8e7c1dee889771a81779b2ef6ba6ef33e51b1e60/django_dbdev/backends/postgres.py#L145-L148.

The workaround is to just rename the file to <something>.dump as long as it is a pgdump file. No idea why this if is there, but I think it may be because of support for other dump formats or something like that (I should know since I wrote the code... but I do not remember !).

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.