Tech Tutorials

by | Dec 14, 2018

Django Views

Each Django view is responsible for doing one of two things: returning an HttpResponse object containing the content for the requested page, or raising an exception such as Http404. The rest is up to you. Your view can read records from a database, or not. It can use...

Django Tutorial – models, database, admin

Code / Syntax stuff from the tutorial that I'm definitely going to forget, so putting it here for easy reference: Question.objects.all() Question.objects.filter(id=1) Question.objects.filter(question_text__startswith='What') q = Question(question_text="What's new?",...

Setup FTP Server on Debian using VSFTP

vsftpd, is an FTP server for Unix-like systems, including Linux. To get vsftpd up and running, do the following as root.    Bash Script apt-get install vsftpd ftp systemctl restart vsftpd.service cd /etc vi vsftpd.conf uncomment local_enable = YES That...