Re: Including URLconf

2022-03-07 Thread Alec Greenholdt
this is what i did and it changed nothing. i also don't know what exactly you mean by app because I don't believe I ever created an app. as shown above the code 2 lines of code with polls is the only thing I've added as shown in the tutorial On Monday, March 7, 2022 at 8:47:46 PM UTC-6 guitard

Re: Including URLconf

2022-03-07 Thread David Crandell
That's definitely your problem. Include the app under INSTALLED_APPS - put "app_name.apps.AppNameConfig" with app_name being the name of your app. On Monday, March 7, 2022 at 11:35:40 AM UTC-6 alec...@gmail.com wrote: > this is the installed apps in settings.py I haven't touched it. i only did

RE: Including URLconf

2022-03-07 Thread Justin Kpakpa
Sent from my GalaxyVisit your settings.py file and include the app in INSTALLED_APPS. Check if that works. Original message From: Alec Greenholdt Date: 07/03/2022 00:24 (GMT+00:00) To: Django users Subject: Including URLconf as described in the documentation i am putting th

Re: Periodic Execution of django functions or tasks

2022-03-07 Thread Dan Davis
If celery is too much, consider django-background-tasks. To be totally honest, I am an old dog, and I generally do the following: * Write a management command. * Deploy a crontab to run my management command. This is not so container or cloud friendly, but none of my cloud deployments run "long"

Re: Including URLconf

2022-03-07 Thread David Crandell
Do you have the app imported in the settings.py? Also try using the "app_name" var in each of your urls.py files. On Sunday, March 6, 2022 at 10:29:23 PM UTC-6 alec...@gmail.com wrote: > > if i try to migrate, this error pops up as well > On Sunday, March 6, 2022 at 6:24:44 PM UTC-6 Alec Greenho

Re: What replaced is_ajax() is django 4

2022-03-07 Thread Jet Ezra
Cool, all I have realised is that if someone is specifically doing a jquery powered application, they can just write it and use it on their own using the below code ```py def is_ajax(): return request.headers.get('x-requested-with') == 'XMLHttpRequest' ``` And that's it! It will start chec

Need help

2022-03-07 Thread loic ngounou
Please how to make a document archiving system with django rest framework -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.