jsfenfen / 990-xml-admin Goto Github PK
View Code? Open in Web Editor NEWKeep tabs on 990 filings
License: Apache License 2.0
Keep tabs on 990 filings
License: Apache License 2.0
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.
There's only a hack to populate from here: https://github.com/jsfenfen/990-xml-admin/blob/master/irs990/schemas/models.py#L15
Related: Adding a new one of these is part of the "import" of a new production version, need to add something about that there.
see sked r parts
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.
should go in settings / local_settings
SCHEMA_PARTS_DIR = os.path.join(BASE_DIR, "schemas", "schema_parts_fixed")
Official Django style is InitialCaps for model names, this needs to be propagated carefully.
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.