This is what my code looks like and it now works :
see where it says "example of setting pk..." below:
def dyn_menu_new(request):
from .models import menu as menuX
from .models import buttons
if request.method == 'POST':
if request.user.is_superuser:
super_user
I had similar issues, I found this helpful:
https://groups.google.com/g/django-users/c/PcSDKZhPVmc
On Sat, Feb 27, 2021 at 9:19 AM Ryan Nowakowski wrote:
> I think choices is causing the problem. Try limit_choices_to instead:
>
>
> https://docs.djangoproject.com/en/dev/ref/models/fields/#djan
DEBUG=Yes in settings.py shows what you need even in Apache
Don’t run like that in prod!
On Fri, Feb 12, 2021 at 10:36 AM Ognjen B. wrote:
> Hi everyone,
> I was wondering can anyone point me to a document describing how to setup
> debugging using any IDE (VS Code, PyCharm, etc) or at least fr
Sorry meant DEBUG=True :)
On Fri, Feb 12, 2021 at 10:39 AM Rob Wilkinson
wrote:
>
> DEBUG=Yes in settings.py shows what you need even in Apache
>
> Don’t run like that in prod!
>
>
> On Fri, Feb 12, 2021 at 10:36 AM Ognjen B.
> wrote:
>
>> Hi everyone,
>&
Check out my new Django site, wrk in progress..
https://MrRobby.ca
I can send you my code if it helps
Rob
On Tue, Jan 19, 2021 at 8:39 AM Christ Ikonga
wrote:
> hi guys i have a question about django form.. how do i use a form i
> created myself to allow users to register on my site?
>
> --
5 matches
Mail list logo