Re: Django error while running

2023-03-22 Thread Ahmad Abdulnasir Shuaib
It looks like you mistakenly alter your settings, check your INSTALLED_APPS
in settings.py

ModuleNotFoundError: No module named 'rest_frameworkdjango'

There should be a comma between rest_framework and django

On Wed, Mar 22, 2023, 12:18 PM Chandresh . T 
wrote:

> Hello all! This is the setting file of the project and I actually
> installed requirement.txt already. In that it said "already installed
> rest_framework" but while running it shows an error that no module called
> rest_framework is installed.
>
> On Wed, 22 Mar 2023 at 07:20, David Nugent  wrote:
>
>> Any traceback with this at the end:
>>
>>   _bootstrap._gcd_import(name[level..], package, level)
>>
>> Is almost always is due to a problem with your settings INSTALLED_APPS,
>> particularly if django\apps\registry.py Is further up the trace.
>>
>> A missing comma between items, perhaps?
>>
>> It would indeed be nice if Django would output a more sensible error
>> message for issues like this 😀
>> Hmm, an idea for a useful PR right there. Seems to be common issue (since
>> the very next message I read in this mail list is exactly the same thing).
>>
>> Regards,
>> David
>>
>>
>> "Chandresh . T"  writes
>>
>> Recently I was running a git clone (
>> https://github.com/divanov11/StudyBud.git)
>>
>> after doing required steps like migrations, etc. I started to run it by
>> (python manage.py runserver) but I got this error.
>>
>> can anyone help me with this, please?
>>
>>
>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/em0481748f-3902-4383-be37-4f591c38c5c5%4090728edb.com
>> 
>> .
>>
> --
> 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.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BPOfqNs%2B9ih8ehTKq%2BoyG%3DZyK70WOWi4XJidGA9OY9rt2gqwQ%40mail.gmail.com
> 
> .
>

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE9AdkY%2B6vKjY2b6Ag5Xr3pbHYWGZh8FT4_7P%2BYM_EiFzbcs-g%40mail.gmail.com.


Re: Can't Load Django Dev Sever

2022-11-11 Thread Ahmad Abdulnasir Shuaib
Try clearing cache and cookies for 127.0.0.1

On Fri, Nov 11, 2022, 8:36 AM Mike Dewhirst  wrote:

> Try visiting http://localhost:8000 instead
>
> No guarantees and I'm not going to test it myself ;-)
>
>
>
>
>
> --
> (Unsigned mail from my phone)
>
>
>
>  Original message 
> From: James 
> Date: 11/11/22 16:13 (GMT+10:00)
> To: Django users 
> Subject: Can't Load Django Dev Sever
>
> Hello,
>
> I can't connect to my django web server and it's all my fault. I turned on
> SECURE_HSTS_SECONDS to 60 by accident in development, in another project, a
> few days ago.
>
> Now I can not load http://127.0.0.1:8000 on FireFox and I don't know how
> to fix it. And yes runserver is set to that port/ip and yes I can connect
> in incognito mode and in chrome.
>
> I have cleared all caches and cookies.
>
> Thanks very much!
>
> --
> 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.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/29a776ee-e840-45ad-885b-3f5752c9466fn%40googlegroups.com
> 
> .
>
> --
> 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.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/636dfb79.050a0220.368b6.8b8fSMTPIN_ADDED_MISSING%40gmr-mx.google.com
> 
> .
>

-- 
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.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE9AdkY5HCgqgHRMXr_XtnFG_Zhu3s4dBkC6V0py_591_dOQFA%40mail.gmail.com.


Re: Re:

2021-10-09 Thread Ahmad Abdulnasir Shuaib
Check your models, you may have unique_together option enabled.

On Sat, Oct 9, 2021, 12:09 PM Sebastian Jung 
wrote:

> Hello,
>
> No only friends get social media or WhatsApp.
>
> I think yoz need a experience developer. Try to get one developer on
> upwork. I have no expeeience with serializer...
>
> Regards
>
>
>
> Hubert Kanyamahanga  schrieb am
> Sa., 9. Okt. 2021, 09:31:
>
>> Can you write to me on whatsapp so that I can  provide more help or even
>> skype or telegram
>>
>> Get Outlook for Android 
>>
>> --
>> *From:* django-users@googlegroups.com  on
>> behalf of Sebastian Jung 
>> *Sent:* Saturday, October 9, 2021 7:26:44 AM
>> *To:* django-users@googlegroups.com 
>> *Subject:* Re:
>>
>> I mean same database and not same database system...
>>
>> ola neat  schrieb am Sa., 9. Okt. 2021, 09:25:
>>
>> Yes postgres
>>
>> On Sat, Oct 9, 2021, 08:15 Sebastian Jung 
>> wrote:
>>
>> On exactly same database?
>>
>> ola neat  schrieb am Sa., 9. Okt. 2021, 09:14:
>>
>> But it working on localhost without issues
>>
>> On Sat, Oct 9, 2021, 08:07 Hubert Kanyamahanga <
>> kanyamahanga.hub...@aims-senegal.org> wrote:
>>
>> Hi Ola, I see where the issue is, the line
>> *self.perform_create(serializer)* on the *def create() *method creates
>> as well as the line *serializer.save()* on the method *def post()*. So
>> in other words, you are trying to create the same user twice,* please
>> comment one of them if you want you can empty your table and start again it
>> will work.*
>>
>> Again there is no reason to use these two methods as they do the same
>> thing. Remove completely either the post or the create.
>>
>> You can text me on whatsApp if you need more support: +221777922780
>>
>> Best,
>>
>> H
>>
>>
>> On Sat, 9 Oct 2021 at 06:51, ola neat  wrote:
>>
>> this is my function
>> [image: image.png]
>>
>>
>> On Fri, Oct 8, 2021 at 6:52 PM Sebastian Jung 
>> wrote:
>>
>> Hello,
>>
>> Your app tries to insert a new entry in table auth.users. in this table a
>> User exists with id=2 and you get this constraint error. Please truncate
>> auth.users table and try it again.
>>
>> Regards
>>
>> ola neat  schrieb am Fr., 8. Okt. 2021, 18:12:
>>
>> Hello guys
>> I've got this issue i don't understand, before i deployed my  APIS to
>> heroku everything was working perfectly, but now that i deployed I'm
>> getting this error, pls can anyone help me?
>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHLKn727okM8xWxX2o7ZgSLT6pDFXQf_oS6NC-83K7zkv9NhXw%40mail.gmail.com
>> 
>> .
>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAKGT9mz-hLnzKVtPSh5WsGhG1CO-afPLJtqwSBz2mHTibgpPZw%40mail.gmail.com
>> 
>> .
>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHLKn71yxd2sTLNvXf4srU9t2pfahc29NdOOa5j0zZmPn%3DACgw%40mail.gmail.com
>> 
>> .
>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAE4dFh0xyoU%3DH1N%3DvZTeTo3gGbAKNR5Z7qqT4JkwN9reb3kF2w%40mail.gmail.com
>> 
>> .
>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https