-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View not detected #13
Comments
Hi @movileanuv You are missing |
Oh ok, my bad. Thank you! I tried now to adapt the settings to
I had to add the additional two apps "django.contrib.auth" and "django.contrib.contenttypes" because The view is still not found though :/ |
Hi @movileanuv Sorry for not getting back to you! Did you figure it out? |
I have the same issue but only with I was able to get the same error with other views.
In this way I have the index but: Reverse for 'comment_show' not found. 'comment_show' is not a valid view function or pattern name.
Removing the decorator |
A simple print in urls.py of include_view_urls shows that:
So my guess is that we are using the decorator but that data is not available somewhere when is needed.
Same thing for
Maybe the decorator are executed after that part so those functions are not executed with I have the app enabled in django:
Running the CLI command just find only one view:
Maybe django requires to load all the views for any request to get all the info? |
So I was able to find the issue. In urls.py I did:
So probably need to support a folder and loop the files inside. |
Hi,
I am trying out your package, and I think it's an awesome idea. I was playing around with this idea of putting an entire django app into one file, like this:
And in the folder
app
, I have aviews.py
file with following view:But when I start the app with
python main.py runserver
, the view is not detected and I only see the django startproject view with the rocket.Why is that? Is there a setting I am missing?
my directory structure looks like this:
This are my package versions:
The text was updated successfully, but these errors were encountered: