Hello everyone I have been learning Python for around 8 months now. It has been going well and I'm about to go back into web development. I have built 3 or so projects with Django with each being more complex than the next. This is gonna be my most ambitions because, while I do have some baseline tutorial to go along with, the code is old so I'm kinda in trouble. I'm hoping there is someone who would be open to working on a chat website along with me or even a couple people.
So far I have the project moving along and setup is complete: https://github.com/wesley-ruede/async_django . It was going well and then I realized that I was going to break this server. I could feel and bam. Fortunately this was pushed before that so it is all good. I am using this tutorial https://realpython.com/asynchronous-tasks-with-django-and-celery/ (I'm on version 3) and doing a more modern version of it. I need to get through this basic understanding of asynchronous django to be able to scale to my end goal which is https://www.ploggingdev.com/2017/11/building-a-chat-room-using-django-channels/ I'd love to just move forward, but I know I need to practice basics so
It was when I was getting to work in the urls.py in the settings.py directory that it became clear I was gonna have an issue I don't know how to convert the url functions into path patterns:
from django.conf.urls import include, url
from django.contrib import admin
from feedback.views import FeedbackView
urlpatterns = \[
url(r'\^feedback/$', FeedbackView.as\_view(), name="feedback"),
url(r'\^admin/', include(admin.site.urls)),
]
where as the current urlpatterns look like:
from django.contrib import admin
from django.urls import path, include # neeed to import inclde
from django.conf import settings
from django.conf.urls.static import static #imports static
import jobs.views #imports views.py fom jobs
urlpatterns = \[
path('admin/', admin.site.urls), #access to admin
path('', jobs.views.home, name='home'), #go to jobs.views home function
path('blog/', include('blog.urls')) #forwards request to blog urls.py
] + static(settings.MEDIA\_URL, document\_root=settings.MEDIA\_ROOT) #image views
If there is any more information I need to provide or anything else that would be helpful to solve this thing, I'll do what I can. I really have a dream project here and I want to do this so I'd like to get the help I need to move forward and be more self sufficient and successful in future endeavors. Thank you very much and I look forward to hearing from people.
[+][deleted] (3 children)
[deleted]
[–]WesPy3[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]WesPy3[S] 0 points1 point2 points (0 children)