Closed tantalusblank closed 1 week ago
@tantalusblank That looks OK. Can you give me a running example?
Thanks for the speedy reply @carltongibson, though sorry could you clarify what you mean by a running example?
Like a test case or example project that shows the issue. (There's something you didn't tell me, but I don't know what.)
@tantalusblank Give v24.5 a go, which I just released, that fixes a maybe related issue.
If that doesn't solve it then you'll need to give me an example project to look at.
Thanks I'll give 24.5 a go on Monday - really appreciate the support. If that doesn't work I'll try and share as much of the project as possible
Great. Thanks.
I'd suggest starting with a fresh project , then try to reproduce the issue with the absolute minimum you need to add. That will show exactly where the issue is.
While 24.5 did seem to solve the problem I was having, it then couldn't find base.html (until I duplicated it into the templates root), and now it is displaying the table! However, although it could be a CSS issue, I can't see any options to create/modify/delete any records.
You should have an invite to a project that is a stripped down version of the app.
app_name = "engineeringinterface"
Neapolitan's view name generation is not compatible with url namespaces. Either don't use one, or move your CRUDView URLs into your main URLConf.
Duplicate of #16 really
Removed the namespace and everything seems to work fine - thanks @carltongibson
Great. Thanks for the follow up!
I'm currently trying to implement Neapolitan into my Django project for the first time and getting the error as per the title.
First Some Detail
class AssetView(CRUDView): model = Asset fields = ["asset_type", "asset_number"]
urlpatterns += views.AssetView.get_urls()
Request URL: http://127.0.0.1:8000/engineeringinterface/asset/ Django Version: 5.0.6 Exception Type: NoReverseMatch Exception Value: Reverse for 'asset-create' not found. 'asset-create' is not a valid view function or pattern name.
projectroot | manage.py | src | myapp | settings.py | urls.py | engineeringinterface | models.py | views.py | urls.py | templates | engineeringinterface | base.html