iamshaunjp / django-playlist Goto Github PK
View Code? Open in Web Editor NEWCourse files for The Net Ninja Django playlist on YouTube
Course files for The Net Ninja Django playlist on YouTube
The current version of Django has several changes from code outlined in this repo, resulting in the old code throwing errors.
from django.contrib import admin
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', views.homepage) # Syntax error: Invalid syntax
]
from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('about/', views.about),
path('', views.homepage)
]
Invalid block tag on line 16: 'url'details'', expected 'empty' or 'endfor'. Did you forget to register or load this tag?
Hi Shaun, thanks for your tutorials. I'm trying to execute and got the above error.
Please help me here.
{% extends 'base_layout.html' %}
{% block content %}
<h2><a href="{% url'details' slug=article.slug %}">{{article.title}}</a></h2>
<p>{{article.snippet}}</p>
<p>{{article.date}}</p>
</div>
{% endfor %}
</div>
{% endblock %}
models.ForeignKey(User, default=None) is deprecated
the newer version supports
author = models.ForeignKey(User, default=None,on_delete=models.CASCADE)
{% load static from staticfiles %}
should be replaced by {% load static from static %}
for newer versions of django
http://127.0.0.1:8000/articles/Django-rules/
while fetching the above url articles page dont do anything .
background-repeat-y: no-repeat;
should be replace by
background-repeat: no-repeat;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.