Django Guide

2023-03-05 Thread Abdullah Niaz
Hello, My Name is Abdullah. I am pursuing my computer science degree & I am 
in the second semester. I learned Python At my school. Now, I want to learn 
Django. Can Anyone guide 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/ec131a61-b003-4979-bdb5-de5466bef6b2n%40googlegroups.com.


Getting an error while try to build my first application in Django

2023-03-05 Thread Gudibandi Poojitha
E:\Project-1\world> python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

Exception in thread django-main-thread:
Traceback (most recent call last):
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\threading.py", 
line 1038, in _bootstrap_inner
self.run()
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\threading.py", 
line 975, in run
self._target(*self._args, **self._kwargs)
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\autoreload.py",
 
line 64, in wrapper
fn(*args, **kwargs)
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\management\commands\runserver.py",
 
line 134, in inner_run
self.check(display_num_errors=True)
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\management\base.py",
 
line 475, in check  
all_issues = checks.run_checks(
 ^^
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\registry.py",
 
line 88, in run_checks  
new_errors = check(app_configs=app_configs, databases=databases)
 ^^^
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\urls.py",
 
line 14, in check_url_config
return check_resolver(resolver)
   
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\urls.py",
 
line 24, in check_resolver  
return check_method()
   ^^
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py",
 
line 494, in check
for pattern in self.url_patterns:
   ^
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\functional.py",
 
line 57, in __get__
res = instance.__dict__[self.name] = self.func(instance)
 ^^^
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py",
 
line 715, in url_patterns 
patterns = getattr(self.urlconf_module, "urlpatterns", 
self.urlconf_module)
   ^^^
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\functional.py",
 
line 57, in __get__
res = instance.__dict__[self.name] = self.func(instance)
 ^^^
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py",
 
line 708, in urlconf_module   
return import_module(self.urlconf_name)
   
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py",
 
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1206, in _gcd_import
  File "", line 1178, in _find_and_load
  File "", line 1149, in 
_find_and_load_unlocked
  File "", line 690, in _load_unlocked
  File "", line 940, in exec_module
  File "", line 241, in 
_call_with_frames_removed
  File "E:\Project-1\world\world\urls.py", line 22, in 
path("",include("homes.urls"))
^
  File 
"C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\conf.py",
 
line 38, in include
return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1206, in _gcd_import
  File "", line 1178, in _find_and_load
  File "", line 1128, in 
_find_and_load_unlocked
  File "", line 241, in 
_call_with_frames_removed
  File "", line 1206, in _gcd_import
  File "", line 1178, in _find_and_load
  File "", line 1142, in 
_find_and_load_unlocked
ModuleNotFoundError: No module named 'homes'

-- 
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/a2941851-1683-4bc3-899d-b7466ed8354cn%40googlegroups.com.


Re: "Django road map and resources"

2023-03-05 Thread Starnford Chirwa
Like this

On Fri, 3 Mar 2023, 17:08 Prosper Lekia,  wrote:

> Hi Yaqiinso. Just start small. All you need is a good understanding of
> your project logic, and what you want to achieve. You can also try
> collaborating on a existing project. You can always reach out to me. I
> started Django with the docs, and by studying the code base of cloned
> projects. I have currently built a an ecommerce site, an online banking
> app, a delivery tracking app, and currently working on my startup, a social
> media site. With you knowledge you can build the project of your dreams.
>
> On Wednesday, March 1, 2023 at 5:00:43 PM UTC+1 yaqiinso wrote:
>
>> Hello dear django developers i was learning django since december i
>> understood all the basics like how create apps,models,views,url,some
>> authentication like adding user,login and logout but still i can not make
>> the projects of my dreams like building school management system software ,
>> E_commerce web, and so ,  where to go can  any one please give road map
>> that takes me to my dream ..
>
> --
> 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/f982abf5-a498-426c-b1fb-46aed5701596n%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/CAFbY-hZXvyQBOzL7vbmddN5H5dTz14oQcp_6hTJWgt5QSvGibw%40mail.gmail.com.


Path Not Found Error

2023-03-05 Thread Rachit Singh
Hi All,

  I am learning Django for the first time and getting error "Path Not 
Found" everytime I am running the command "python manage.py runserver". I 
have gone through many videos & articles and have tried many things but it 
is still not working. Can anyone help me on the same.
I would like to mention here that I am using a Windows Laptop having 64 GB 
Configuration with AMD Ryzem 5 version.

I would be glad to hear your response.

Thanks & Regards
Rachit

-- 
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/4203b244-81ca-4fa1-bb0c-ee222de71f01n%40googlegroups.com.


Login and Logout using Django JWT Token

2023-03-05 Thread Themporst Aiden
Am working on a personal project, my plan is to build Mobile App in the 
future for it. I have already developed the backend api endpoints using 
Django Rest Framework and JWT. But the challenge now is that how can i 
consume the rest api endpoints from my same django project. ? I know how to 
send POST and GET request from Django. But how do i use the access and 
refresh token in the header for every request that need authentication. 
>From what i know so far, the access token expire so soon, and i need to 
store the refresh token on cookie. And whenever i need it i will just get 
the refresh token from the cookie and use it to send a post request to the 
refresh token endpoint, which will now get me access token. But my question 
is how do i do it ? 

I mean the code to login user and  alway make sure the access token is 
present whenever am sending a request  to the api endpoint 

-- 
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/8b4f8e12-c1f7-4733-a335-cf099b3036fdn%40googlegroups.com.


Re: Path Not Found Error

2023-03-05 Thread Sunil Gyawali
Give correct path in admin

On Sun, Mar 5, 2023, 9:29 PM Rachit Singh  wrote:

> Hi All,
>
>   I am learning Django for the first time and getting error "Path Not
> Found" everytime I am running the command "python manage.py runserver". I
> have gone through many videos & articles and have tried many things but it
> is still not working. Can anyone help me on the same.
> I would like to mention here that I am using a Windows Laptop having 64 GB
> Configuration with AMD Ryzem 5 version.
>
> I would be glad to hear your response.
>
> Thanks & Regards
> Rachit
>
> --
> 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/4203b244-81ca-4fa1-bb0c-ee222de71f01n%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/CAGL7DWw_-atjxe%2Ba8FaxjVCNMdDSuMS4V1dq1xnvGacfFmXTDA%40mail.gmail.com.


Re: Django Guide

2023-03-05 Thread Kennedy Saavedra
Hello Abdullah, this is the documentation of
Django: https://docs.djangoproject.com/en/4.1/

Start from the basics

El dom, 5 mar 2023 a las 10:58, Abdullah Niaz ()
escribió:

> Hello, My Name is Abdullah. I am pursuing my computer science degree & I
> am in the second semester. I learned Python At my school. Now, I want to
> learn Django. Can Anyone guide 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/ec131a61-b003-4979-bdb5-de5466bef6b2n%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/CAL-qgjfZ4MGpHOGMaAb%3Dcdw8UPE-RHRRs3Wu5na2TDA9k-Hg0g%40mail.gmail.com.


Re: Django Guide

2023-03-05 Thread shyam manek
U should explore documentation and YouTube latest videos and create your
own e commerce website project with rest framework

On Sun, Mar 5, 2023, 9:28 PM Abdullah Niaz 
wrote:

> Hello, My Name is Abdullah. I am pursuing my computer science degree & I
> am in the second semester. I learned Python At my school. Now, I want to
> learn Django. Can Anyone guide 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/ec131a61-b003-4979-bdb5-de5466bef6b2n%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/CAL5Fy%3DD7BTi%2BJFxE%3DP4D%3DqgeyYHFkM7gBfBuwenTFA0KNPdquA%40mail.gmail.com.


Re: Getting an error while try to build my first application in Django

2023-03-05 Thread Olatide Joseph
Have you created your application homes ? Cause it's saying no modules
named homes.
Just run the following command
`python manage.py startapp homes`
and in your settings.py installed_apps=[
...
'homes.apps.HomesConfig'
]
add the following line in your installed apps config
and the folder homes created by the startapp command create the file named
urls.py and add your url patterns and try it again .


On Sun, Mar 5, 2023, 16:59 Gudibandi Poojitha 
wrote:

> E:\Project-1\world> python manage.py runserver
> Watching for file changes with StatReloader
> Performing system checks...
>
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\threading.py",
> line 1038, in _bootstrap_inner
> self.run()
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\threading.py",
> line 975, in run
> self._target(*self._args, **self._kwargs)
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\autoreload.py",
> line 64, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\management\commands\runserver.py",
> line 134, in inner_run
> self.check(display_num_errors=True)
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\management\base.py",
> line 475, in check
> all_issues = checks.run_checks(
>  ^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\registry.py",
> line 88, in run_checks
> new_errors = check(app_configs=app_configs, databases=databases)
>  ^^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\urls.py",
> line 14, in check_url_config
> return check_resolver(resolver)
>
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\urls.py",
> line 24, in check_resolver
> return check_method()
>^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py",
> line 494, in check
> for pattern in self.url_patterns:
>^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\functional.py",
> line 57, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>  ^^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py",
> line 715, in url_patterns
> patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
>^^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\functional.py",
> line 57, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>  ^^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py",
> line 708, in urlconf_module
> return import_module(self.urlconf_name)
>
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py",
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1206, in _gcd_import
>   File "", line 1178, in _find_and_load
>   File "", line 1149, in
> _find_and_load_unlocked
>   File "", line 690, in _load_unlocked
>   File "", line 940, in exec_module
>   File "", line 241, in
> _call_with_frames_removed
>   File "E:\Project-1\world\world\urls.py", line 22, in 
> path("",include("homes.urls"))
> ^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\conf.py",
> line 38, in include
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1206, in _gcd_import
>   File "", line 1178, in _find_and_load
>   File "", line 1128, in
> _find_and_load_unlocked
>   File "", line 241, in
> _call_with_frames_removed
>   File "", line 1206, in _gcd_import
>   File "", line 1178, in _find_and_load
>   File "", line 1142, in
> _find_and_load_unlocked
> ModuleNotFoundError: No module named 'homes'
>
> --
> 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

Re: Django Guide

2023-03-05 Thread Sandip Bhattacharya
There is a good guide here as well: 
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django


- Sandip

> On Mar 5, 2023, at 5:20 PM, Kennedy Saavedra  wrote:
> 
> Hello Abdullah, this is the documentation of 
> Django: https://docs.djangoproject.com/en/4.1/
> 
> Start from the basics
> 
> El dom, 5 mar 2023 a las 10:58, Abdullah Niaz ( >) escribió:
>> Hello, My Name is Abdullah. I am pursuing my computer science degree & I am 
>> in the second semester. I learned Python At my school. Now, I want to learn 
>> Django. Can Anyone guide 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/ec131a61-b003-4979-bdb5-de5466bef6b2n%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/CAL-qgjfZ4MGpHOGMaAb%3Dcdw8UPE-RHRRs3Wu5na2TDA9k-Hg0g%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/4C318C9D-D1BF-4DCC-8533-C1F28ABE8C38%40showmethesource.org.


Re: Getting an error while try to build my first application in Django

2023-03-05 Thread Gudibandi Poojitha
Hi Olatide Joseph

I resolved the error.Now the project is working fine

Thanks and regards
Poojitha


On Sun, 5 Mar, 2023, 9:29 pm Gudibandi Poojitha, <
gudibandipooji...@gmail.com> wrote:

> E:\Project-1\world> python manage.py runserver
> Watching for file changes with StatReloader
> Performing system checks...
>
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\threading.py",
> line 1038, in _bootstrap_inner
> self.run()
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\threading.py",
> line 975, in run
> self._target(*self._args, **self._kwargs)
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\autoreload.py",
> line 64, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\management\commands\runserver.py",
> line 134, in inner_run
> self.check(display_num_errors=True)
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\management\base.py",
> line 475, in check
> all_issues = checks.run_checks(
>  ^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\registry.py",
> line 88, in run_checks
> new_errors = check(app_configs=app_configs, databases=databases)
>  ^^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\urls.py",
> line 14, in check_url_config
> return check_resolver(resolver)
>
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\core\checks\urls.py",
> line 24, in check_resolver
> return check_method()
>^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py",
> line 494, in check
> for pattern in self.url_patterns:
>^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\functional.py",
> line 57, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>  ^^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py",
> line 715, in url_patterns
> patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
>^^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\utils\functional.py",
> line 57, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>  ^^^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\resolvers.py",
> line 708, in urlconf_module
> return import_module(self.urlconf_name)
>
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py",
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1206, in _gcd_import
>   File "", line 1178, in _find_and_load
>   File "", line 1149, in
> _find_and_load_unlocked
>   File "", line 690, in _load_unlocked
>   File "", line 940, in exec_module
>   File "", line 241, in
> _call_with_frames_removed
>   File "E:\Project-1\world\world\urls.py", line 22, in 
> path("",include("homes.urls"))
> ^
>   File
> "C:\Users\gudib\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\urls\conf.py",
> line 38, in include
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1206, in _gcd_import
>   File "", line 1178, in _find_and_load
>   File "", line 1128, in
> _find_and_load_unlocked
>   File "", line 241, in
> _call_with_frames_removed
>   File "", line 1206, in _gcd_import
>   File "", line 1178, in _find_and_load
>   File "", line 1142, in
> _find_and_load_unlocked
> ModuleNotFoundError: No module named 'homes'
>
> --
> 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/a2941851-1683-4bc3-899d-b7466ed8354cn%40googlegroups.com
>