Arshia
Impossible to know the solution with no details at all
error : watching for files changes with statreloader: exception in thread django-main-thread
Arshia
not enough context
can I send my error in direct you?
Arshia
I can't send imge about it here
Arshia
Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): File "D:\ana\Lib\threading.py", line 1038, in _bootstrap_inner self.run() File "D:\ana\Lib\threading.py", line 975, in run ModuleNotFoundError: No module named 'blog'
Arshia
i did
Charly
i did
and the directory is called blog?
Charly
absolutely yes
and where is located?
cj
iran
he's asking where in the computer that folder is located
Arshia
he's asking where in the computer that folder is located
yeh I'm sorry I don't understand meaning his question
Charly
yeh I'm sorry I don't understand meaning his question
Do you know whats a folder? Do you know how whats a path? How you can know where a file is living?
Eudes Gaël
(venv) PS C:\Users\Fantas\PycharmProjects\monprojet> django-admin startproject mytestpro (venv) PS C:\Users\Fantas\PycharmProjects\monprojet> cd mytestpro cd : Impossible de trouver le chemin d'accès « C:\Users\Fantas\PycharmProjects\monprojet\mytestpro », car il n'existe pas. Au caractère Ligne:1 : 1                                                                                                      + cd mytestpro                                                                                                                + ~~~~                                                                                                                    + CategoryInfo          : ObjectNotFound: (C:\Users\Fantas...rojet\mytestpro:String) [Set-Location], ItemNotFoundException     + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand                                   (venv) PS C:\Users\Fantas\PycharmProjects\monprojet>
Eudes Gaël
How can I please solve this problem?
Charly
How can I please solve this problem?
run a dir to see if the directory was created
Charly
(venv) PS C:\Users\Fantas\PycharmProjects\monprojet> django-admin startproject mytestpro (venv) PS C:\Users\Fantas\PycharmProjects\monprojet> cd mytestpro cd : Impossible de trouver le chemin d'accès « C:\Users\Fantas\PycharmProjects\monprojet\mytestpro », car il n'existe pas. Au caractère Ligne:1 : 1                                                                                                      + cd mytestpro                                                                                                                + ~~~~                                                                                                                    + CategoryInfo          : ObjectNotFound: (C:\Users\Fantas...rojet\mytestpro:String) [Set-Location], ItemNotFoundException     + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand                                   (venv) PS C:\Users\Fantas\PycharmProjects\monprojet>
And please do not share non-english text here
Eudes Gaël
And please do not share non-english text here
I know English is spoken in here. It was just a message error that I get from my computer.
Eudes Gaël
Charly
Thank you so much, Charly.
but that doesn't solve the issue...
Eudes Gaël
After running dir, I can't find a Django folder that I have created.
Eudes Gaël
(venv) PS C:\Users\Fantas\PycharmProjects\monprojet> django-admin startproject mytestpro (venv) PS C:\Users\Fantas\PycharmProjects\monprojet> dir                                    Repertory : C:\Users\Fantas\PycharmProjects\monprojet Mode                 LastWriteTime         Length Name ----                 -------------         ------ ---- d-----        07/03/2024     00:39                .idea d-----        06/03/2024     04:15                venv -a----        06/03/2024     04:41             70 First_Bonjour.py -a----        06/03/2024     04:17            542 main.py
Eudes Gaël
Here is what I get.
Eudes Gaël
I can't find my Django folder "mytestpro"
Charly
run django-admin startproject and show the output
Eudes Gaël
(venv) PS C:\Users\Fantas\PycharmProjects\monprojet> django-admin startproject (venv) PS C:\Users\Fantas\PycharmProjects\monprojet>
Charly
how do you installed django?
Eudes Gaël
I'm using the pycharm terminal.
Charly
Eudes Gaël
try in windows terminal
In the windows terminal, it's working just fine. But I would like to be able to do it using pycharm as well. So that I can go along with the course that I have bought (they're doing everything with pycharm).
Charly
I didn't really get this introduction.
That was for a different issue
Charly
For this I don't know what's the issue
Anonymous
I didn't really get this introduction.
Where's the error can u pin that msg!
Anonymous
Charly
This one?
Read the whole conversation!
Anonymous
Do ls -a can u list mytestpro?
Charly
Do ls -a can u list mytestpro?
I already asked that and the answer is there!
Anonymous
Got it
Rose
User K has 1/3 warnings; be careful! Reason: this not a job board
Arneeth
When I am opening an new page using anchor tag from my current page a new page is branching from my current url but I want it to not be branched how can it be done?
Markus
hi, how i can nest two models sequentially into one using StackedInline, that is, so that when creating object A, the form of object B connected by a foreign key, and the shape of object C, are displayed. Model B contains a foreign key to object A. Model C foreign key to object B. I need to display nested forms for creating models B and C in Django admin when creating object A. Simple example: there is a poll, there is a question, and an answer, each of them contains a foreign key to the previous one.
Markus
I try use this, but it's show only question and quiz class AnswerInline(admin.StackedInline): model = Answer readonly_fields = ['question'] class QuestionInline(admin.StackedInline): model = Question inlines = [AnswerInline] class QuizAdmin(admin.ModelAdmin): inlines = [QuestionInline] class QuestionAdmin(admin.ModelAdmin): inlines = [AnswerInline]
o.
Hi how can I get started with django?
o.
Can anyone help me please?
Victor
Can anyone help me please?
Always start with docs, not just on django but on any lib: https://docs.djangoproject.com/en/5.0/intro/
vermudra
Can anyone help me please?
I think starting from docs is a bad idea. Find some popular beginner friendly course or book and start an easy project
vermudra
sry dunno any video courses, try to google it
Victor
I think starting from docs is a bad idea. Find some popular beginner friendly course or book and start an easy project
Docs is always a better way, principally django that have an awesome intro on this link i shared.
~𝙰𝚋𝚍𝚞𝚛𝚊𝚡𝚖𝚘𝚗
Can anyone help me please?
I think start width some YouTube course or online course is good idea for build foundation and try to get answers to questions what is the Django, for what use and other basic questions... After that all things if you will read docs of Django you can better understand about Django
o.
Thanks for all
Prasad
Hi
Prasad
django.core.exceptions.ValidationError: ["""value has an invalid date format. It must be in YYYY-MM-DD format.']
Prasad
Facing this error..I just used abstractbaseuser and override the user model
Simon
Hello guys i would like help on django on vs code
Simon
I installed django correctly and its running in a virtual environment,but when i enter the project in vs code and reload my server no changes are observed on the browser
Simon
In fact any code changes made to django doesn't affect the template sent from the view and what is shown on the screen is the Django landing page
Joj
name_shop is not defined Please i need help
Rose
name_shop is not defined Please i need help
Impossible to help without details.
T
Can anybody guide me on how to add biometric authentication to a website
Simon
di you added a new view in the same url?
Actually nothing is changing on my web browser even after intentionally adding an error that will cause a bug
Charly
Show your code