Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Ayser shuhaib
Create your projectdir manually then inside the projectdir folder (right click with your mouse and open command window here) After that continue with Django commands django-admin startproject ... On Thu, 03 May 2018 at 07:59, Daisy wrote: > Thank you very much for your

Re: python manage.py runserver

2018-11-20 Thread Ayser shuhaib
What is the message that you get when you run Python manage.py runserver On Tue, 20 Nov 2018 at 20:58, Mohamed Hashi wrote: > i wrote pip install virtualenv > and installed > buy when i do all the steps to start django web > and i came for python manage.py runserver isnt work > so and help bro

Re: migrating from sqlite to mysql breaks the site

2019-03-14 Thread Ayser shuhaib
In your settings, you put the port is 3306 but in the url it’s 8000. I think the problem is there. On Thu, 14 Mar 2019 at 12:07, Pedram Badakhchani < pedrambadakhch...@gmail.com> wrote: > Hi Anh, > > yes, everything works fine, the only problem is once I switched from > sqlite to mysql, > > I am

Re: Settings file for multiple environments?

2019-04-17 Thread Ayser shuhaib
Are you sure about the directory? I mean is it “ abcd.setting.hk” or “abcd.settings.hk” ? On Thu, 18 Apr 2019 at 06:00, ANi wrote: > > Hi, > I divided my settings into different files, but I think it's not working > on Heroku, here are my code: > > # This is abcd/setting/hk.py > from .base

Re: Nested Model

2019-09-19 Thread Ayser shuhaib
Hello Davin, The image is not opening On Thu, 19 Sep 2019 at 08:35, Davin Pore wrote: > Seeking for your kind assistance on how to get the value of this using > nested model on django restapi. > > [image: image.png] > Thank you. > > -- > You received this message because you are subscribed to

Re: Nested Model

2019-09-19 Thread Ayser shuhaib
I’m not sure if I understood your question but for example: enterprise.type will give you the value of type. On Thu, 19 Sep 2019 at 10:00, Davin Pore wrote: > [image: API_Box.JPG] > > > On Thursday, 19 September 2019 14:35:03 UTC+8, Davin Pore wrote: >> >> Seeking for your kind assistance on

Re: Update Nested Serializer

2019-09-19 Thread Ayser shuhaib
Use a view.py to add, update or delete data in your model.py Check ViewSets. https://www.django-rest-framework.org/api-guide/viewsets/ On Thu, 19 Sep 2019 at 16:20, Marsel Beqiri wrote: > Hi, I am working with a Django rest api project. SO i need some help. I > cant create a update for

Re: manage.py runserver error

2019-09-21 Thread Ayser shuhaib
I think the problem is incompatibility between django version and python version. Install python 3.7 with the latest version of Django Then try. On Sun, 22 Sep 2019 at 06:10, Pawan Jha wrote: > When I run the Command "manage.py runserver" on the command > prompt(WINDOWS), I get the following

Re: Django local host connection aborted

2020-02-05 Thread Ayser shuhaib
Can you send your settings.py file please. On Wed, 05 Feb 2020 at 14:30, yazan bader wrote: > am having new issue when running Django localhost 127.0.0.1:8000 as > connection getting aborted ,this is new for me as I am working with Django > from 3 month and cant find solution for it. > > below

Re: Attribute Error

2020-02-17 Thread Ayser shuhaib
Pleas provide the code for clickjacking.py On Mon, 17 Feb 2020 at 14:50, Ernest Thuku wrote: > Hello guys please help on the error. I have been stuck for days now. > I am Ernest from Kenya. > please look into these files below > > -- > You received this message because you are subscribed to the

Re: API documentation

2020-03-11 Thread Ayser shuhaib
Django Rest Framework is what you need. Check this series of tutorials. https://youtu.be/iIqMEflK-HM The Documentation: https://www.django-rest-framework.org On Wed, 11 Mar 2020 at 11:59, Sunday Iyanu Ajayi wrote: > Please can someone recommend an api documentation tool that works with >

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ayser shuhaib
to run the server use: Python manage.py runserver It would be better if you send a picture of the project files structure. On Sun, 19 Apr 2020 at 15:22, Ilie Ioana wrote: > Hi,I'm new with django and python. > I just strated a new django project in a venv using django 3.0 and seems > that

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-20 Thread Ayser shuhaib
quot;/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py", >> line 61, in _setup >> % (desc, ENVIRONMENT_VARIABLE)) >> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG, but >> settings are not configured. You mus

Re: How to connect django and React js but getting Error

2020-10-26 Thread Ayser shuhaib
Your view must return a Jason response and not render a html file. You should learn Django Rest Framework for that This is an example here for how your view will look like: API View https://youtu.be/-x_Z_V9HXZE On Mon, 26 Oct 2020 at 13:08, Samuel Nogueira wrote: > Please can you show me

Re: Tried to migrate custom user model and got this error shown below

2020-08-09 Thread Ayser shuhaib
Truro delete the files inside the migrations folder then run The makemigrations command then migrate On Sun, 09 Aug 2020 at 19:58, FIRDOUS BHAT wrote: > django.db.migrations.exceptions.InconsistentMigrationHistory: Migration > admin.0001_initial is applied before its dependency

Re: Django Rest Framework

2020-07-23 Thread Ayser shuhaib
You are filtering by admin ID but you are passing the username not the user ID On Wed, 22 Jul 2020 at 19:37, Shishir Jha wrote: > Did you solve it? > > On Wed, 22 Jul 2020, 5:10 pm mishra39076, wrote: > >> I wan to fetch logged-in username using request but i am not getting it >> in

Re: Heroku database migration

2020-07-19 Thread Ayser shuhaib
I've experienced this problem many times and the solution is to simply change the name of the model then do the migration and after that you can change the model name to the original name and run the migration again, I think it's a bug in django. On Sun, Jul 19, 2020 at 8:47 PM Heet Gupta wrote:

Re: DJOSER And Simple Jwt Authentication

2020-12-10 Thread Ayser shuhaib
Please check this video it might help: https://youtu.be/mHz6UuDXPE8 On Thu, 10 Dec 2020 at 14:01, narendra...@gmail.com < narendrathapa...@gmail.com> wrote: > Hi dear friends, > Anyone here familiar With DJoser and Simplejwt. I am using it for > authentication and i got a problem. I can get

Re: Deploying an app on heroku

2020-10-31 Thread Ayser shuhaib
please set debug value to True then deploy, that will allow us to see what is causing the server error On Sun, Nov 1, 2020 at 12:46 AM programmer 262 wrote: > hy guys i want to deploy my app on heroku and i having a bad time this is > the website that i deployed >

Re: How can I multiply 2 or more fields in django views or models

2021-01-04 Thread Ayser shuhaib
Nothing wrong with the query, the problem is that you are trying to multiply two values of a different type. You can fix that by converting the smallInteger value to decimal. On Mon, 04 Jan 2021 at 23:01, jose angel encinas ramos < encinasj.an...@gmail.com> wrote: > Hi everyone, i'm a new in

Re: I cannot run django project on new windows

2020-12-31 Thread Ayser shuhaib
Have you created a new virtual environment using the new python you installed? If not, create a new virtual environment then install the dependencies for your project then try. On Thu, 31 Dec 2020 at 20:15, Tarek elgendy wrote: > I was creating a project using django. And I wanted to change

Re: django cron Job Functionality

2021-06-12 Thread Ayser shuhaib
Watch this video on how to schedule a task or function in your Django project, I’m sure it will have the answer to your question: https://youtu.be/t0xHlgWQvAk On Sat, 12 Jun 2021 at 08:54, Ayser shuhaib wrote: > https://youtu.be/t0xHlgWQvAk > > > On Sat, 12 Jun 2021 at 08:53, A

Re: django cron Job Functionality

2021-06-12 Thread Ayser shuhaib
> > On Sat, 12 Jun 2021 at 08:56, Ayser shuhaib > wrote: > >> Watch this video on how to schedule a task or function in your Django >> project, I’m sure it will have the answer to your question: >> >> https://youtu.be/t0xHlgWQvAk >> >> >> On Sat

Re: django cron Job Functionality

2021-06-12 Thread Ayser shuhaib
https://youtu.be/t0xHlgWQvAk On Sat, 12 Jun 2021 at 08:53, Ayser shuhaib wrote: > Watch this video on how to schedule a task or function in your Django > project, I’m sure it will have the answer to your question: > > > > > On Sat, 12 Jun 2021 at 08:41, Eugene TUYIZERE &g

Re: django cron Job Functionality

2021-06-12 Thread Ayser shuhaib
Watch this video on how to schedule a task or function in your Django project, I’m sure it will have the answer to your question: On Sat, 12 Jun 2021 at 08:41, Eugene TUYIZERE wrote: > Thank you for recommendations, > > Because I never use this Celery-beat, if possible you can give some

Re: In Django project how to create app in subapp in apps folder.

2021-05-18 Thread Ayser shuhaib
I think you should add __init__.py file inside your apps folder for Django to see it On Tue, 18 May 2021 at 17:20, Salima Begum wrote: > Hi all, > > We initially developed our project with the following folder structure; > > [image: old_folder_structure.PNG] > > As shown in the above image we

Re: Django Custom User model and making auth api

2021-04-03 Thread Ayser shuhaib
django-rest-auth is still supported, it's not currently receiving updates, but you can still use it and it has no issues so far. On Sat, Apr 3, 2021 at 9:39 AM Saad Mrabet wrote: > Yes it is in fact the bast option possible, thank you ! > > On Friday, April 2, 2021 at 11:50:55 PM UTC+1 Ryan

Re: Django Custom User model and making auth api

2021-04-02 Thread Ayser shuhaib
Please see this tutorial as it explained how to create a custom user model and uses django-rest-auth for the (login, logout, signup ...etc) https://youtu.be/GdfLXHhNABE On Sat, 03 Apr 2021 at 00:50, Ryan Nowakowski wrote: > I don't have a ton of experience with it but when a question includes

Re: Django Rest Framework & How to Learn it ?

2021-04-12 Thread Ayser shuhaib
This is a great YouTube channel to learn about DRF https://youtube.com/channel/UCh9biyYSlMzM9T3Xtxmglww Also see this Udemy course https://www.udemy.com/course/python-django-rest-api/?referralCode=662DCC014E91DF235623 On Mon, 12 Apr 2021 at 16:44, Aniket Balkhande <

Re: Deploying my Django App to Heroku

2021-04-23 Thread Ayser shuhaib
Make sure you create the user objects in the database before loading the books data On Fri, 23 Apr 2021 at 14:02, Nzekwe Isaac wrote: > I think there's a problem with your database. Try deleting your dbsqlite > database and run migrations a again. > > On Fri, 23 Apr 2021, 12:50 Ejike Enyinnaya,

Re: Added new column to model and run migrations but not applied to database table

2021-07-19 Thread Ayser shuhaib
What you can do is just change the name of the model then run the migration after that change it back to the original name and run the migration again. This what I do when facing such problem On Mon, 19 Jul 2021 at 08:41, Salima Begum wrote: > Hi Abhishek, What you suggested will work but I

Re: Added new column to model and run migrations but not applied to database table

2021-07-19 Thread Ayser shuhaib
What you can do is just change the name of the model then run the migration after that change it back to the original name and run the migration again. This what I do when facing such problem On Mon, 19 Jul 2021 at 07:07, Salima Begum wrote: > Hi all, > > I have added a new column to the

Re: migrations problem in django

2022-06-02 Thread Ayser shuhaib
You probably have a Integer field in one of your models with max_length arguments, so remove that argument and that should solve the problem On Thu, 02 Jun 2022 at 01:37, Mike Dewhirst wrote: > On 2/06/2022 3:00 am, Paras Kashyap wrote: > > TypeError: Field.__init__() got an unexpected keyword

Re: Model Design

2022-05-05 Thread Ayser shuhaib
To help understand more the problem, would you please explain why adding an extra field to your models to be used as a foreign key, is not an option? On Thu, 05 May 2022 at 15:36, 'dtdave' via Django users < django-users@googlegroups.com> wrote: > We receive data from various third parties in

Re: Model Design

2022-05-05 Thread Ayser shuhaib
ng the foreign key to the account manager this would impact > on the import? > > On 5 May 2022, at 14:51, Ayser shuhaib wrote: > > > To help understand more the problem, would you please explain why adding > an extra field to your models to be used as a foreign key, is not an option? &g

Re: User model override and authentication

2022-10-24 Thread Ayser shuhaib
Oi Rafael I’m sure this tutorial will help you: https://youtu.be/GdfLXHhNABE On Mon, 24 Oct 2022 at 23:14, Rafael Noronha wrote: > Hello guys, > I'm not advanced in Django and would like to know how and if it's possible > to do it. > > I need to override Django's user model, and change the