academind / django-practical-guide-course-code Goto Github PK
View Code? Open in Web Editor NEWThis repository holds the source code snapshots for our "Django - The Practical Guide" course (https://acad.link/django)
This repository holds the source code snapshots for our "Django - The Practical Guide" course (https://acad.link/django)
Video doesn't mention correct file paths when including challenge.css and should look like this in the challenge.html file:
#{%block css_files%}
#<link rel="stylesheet" href="{% static "challenges/includes/challenge.css"%}">
#<link rel="stylesheet" href="{% static "challenges/challenges.css"%}">
#<link rel="stylesheet" href="{% static "challenges/includes/header.css"%}">
#{%endblock%}
Gave me and I presume other people 404 errors for the CSS files
Where is the source code?
When I add a participant (his email address) using the form, the email address is added to all meetings, not just the one he joined.
I followed the whole tutorial and wrote the fixed code as well. Has anyone fixed this bug?
In the beginning, everything was fine using only psycopg2-binary
in my virtual environment. So I uploaded the code to EB and eveythings goes fine.
When you changed the strategy (start serving static and media files using S3), you needed to install django-storages
and change some configurations at settings.py
file. Creating static files using this new strategy seems to require psycopg2.extensions
which is not available through the binary package (psycopg2-binary
). To try to override this problem, I installed psycopg2
in my virtual environment and I could made the static files, but other problem arised: Elastic Beanstalk was not able to install psycopg2
.
I came to a solution using this answer: https://stackoverflow.com/a/63204453/11122513
He added a file 01_packages.config
inside .ebextensions
with this content:
packages:
yum:
amazon-linux-extras: []
commands:
01_postgres_activate:
command: sudo amazon-linux-extras enable postgresql10
02_postgres_install:
command: sudo yum install -y postgresql-devel
Using this solution, EB was able to install psycopg2
and my app worked well again.
You course was really good, but I think the deployment section was a bit tricky and I had to spend some time to be able to do the deploy.
Thanks,
Igor
in 'meetups/templates/meetups/index.html' the location value is hardcoded with 'New York' instead of using the item's value.
I created one PR: #6 but this happens in multiple branches prior to this final one
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.