espenak / django_dbdev Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Ignoring importlib-metadata: markers 'python_version < "3.10"' don't match your environment
NOK dbdev_loaddump
This is needed if you are developing multiple projects in parallel. Ideally we should be able to manage this automatically, but I think just making it possible to override in settings should work for most use cases.
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
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 !).
We assume the postgres
command (and the other commands required) are available on PATH. Perhaps we should try to look for it in common places, like /usr/lib/postgresql/<version>/bin/
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.