You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add a admin interface for my existing project but get the below error -
Here is my ini file -
def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
"""
with Configurator(settings=settings) as config:
config.include('pyramid_jinja2')
config.set_security_policy(
SecurityPolicy(
secret=settings['invest.secret']
),
)
config.add_subscriber(add_cors_headers_response_callback, NewRequest)
# admin changes
config.include('pyramid_sacrud')
settings = config.registry.settings
# settings['pyramid_sacrud.models'] = (('Group1', [User,]),
# ('Group2', [Issuer]))
#
config.include('.routes')
config.include('.models')
# config.include('ps_alchemy')
config.scan()
return config.make_wsgi_app()
Error:-
File "/Users/p2/.virtualenvs/investment/lib/python3.8/site-packages/pyramid/config/actions.py", line 483, in resolveConflicts
raise ConfigurationConflictError(conflicts)
pyramid.exceptions.ConfigurationConflictError: Conflicting configuration actions
For: ('route', '__static/')
Line 2 of file /Users/p2/Documents/pycharm_projects/invest_web/invest_web/routes.py:
config.add_static_view('static', 'static', cache_max_age=3600)
Line 23 of file /Users/p2/.virtualenvs/investment/lib/python3.8/site-packages/pyramid_sacrud/assets.py:
config.add_static_view('static', 'pyramid_sacrud:static')
The text was updated successfully, but these errors were encountered:
I'm trying to add a admin interface for my existing project but get the below error -
Here is my ini file -
Error:-
The text was updated successfully, but these errors were encountered: