Code Monkey home page Code Monkey logo

990-xml-admin's People

Contributors

jsfenfen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

990-xml-admin's Issues

on_delete attribute needs to be set in ProcessedFiling in filing/models.py

I got an error when I tried to run makemigrations, and the stack trace pointed to this code.

Stack trace:
submission = models.ForeignKey(xml_submission, null=True)
TypeError: init() missing 1 required positional argument: 'on_delete'

I am using Python 3.6 and ran pip install -r requirements.txt on a virtualenv before attempting the migration.

schemas.models.DoesNotExist: ProductionVersion matching query does not exist

I got this error when I attempted to run the command: python manage.py enter_schema_files 2016v3.0

Full stack trace:
C:\Users\cschnaars\Envs\990-xml-admin\lib\site-packages\django\db\models\base.py
:319: RuntimeWarning: Model 'returndata.skdafrm990skdaprtvi' was already registe
red. Reloading models is not advised as it can lead to inconsistencies, most not
ably with related models.
new_class.meta.apps.register_model(new_class.meta.app_label, new_class)
Entering versions: ['2016v3.0']
Walk dir c:/data/irs/990-xml-admin/schemas\source_schemas\efile990x_2016v3.0\201
6v3.0 version 2016v3.0
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\cschnaars\Envs\990-xml-admin\lib\site-packages\django\core\mana
gement_init
.py", line 364, in execute_from_command_line
utility.execute()
File "C:\Users\cschnaars\Envs\990-xml-admin\lib\site-packages\django\core\mana
gement_init
.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Users\cschnaars\Envs\990-xml-admin\lib\site-packages\django\core\mana
gement\base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "C:\Users\cschnaars\Envs\990-xml-admin\lib\site-packages\django\core\mana
gement\base.py", line 330, in execute
output = self.handle(*args, **options)
File "C:\Users\cschnaars\Desktop\Work\990-xml-admin\irs990\schemas\management
commands\enter_schema_files.py", line 60, in handle
self.walk_dir(dir, v)
File "C:\Users\cschnaars\Desktop\Work\990-xml-admin\irs990\schemas\management
commands\enter_schema_files.py", line 23, in walk_dir
this_version = ProductionVersion.objects.get(version_string=version_string)
File "C:\Users\cschnaars\Envs\990-xml-admin\lib\site-packages\django\db\models
\manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "C:\Users\cschnaars\Envs\990-xml-admin\lib\site-packages\django\db\models
\query.py", line 380, in get
self.model._meta.object_name
schemas.models.DoesNotExist: ProductionVersion matching query does not exist.

SCHEMA_PARTS_DIR

should go in settings / local_settings
SCHEMA_PARTS_DIR = os.path.join(BASE_DIR, "schemas", "schema_parts_fixed")

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.