Sign in

Shopify | Django | Webflow | For Hire For Freelance Projects https://cutt.ly/GgTzQ1m
Photo by Clint Patterson on Unsplash

What I built

I rebuilt my new portfolio in the past 2 or 3 weeks. When I read about the announcement of the #dohackathon, I told myself, f*ck it. I’ll submit this website, just for experience.

Category Submission:

Portfolio

App Link

https://studio.icvn.tech

Screenshots


The covid tracker that I made and wrote about a couple of months ago had crashed without knowing that you should have an inbound firewall to Django, port 80 and 443.

For the past month, I’ve been recreating the app, finding APIs that can help users, and finding the perfect design system that would make the web app look professional and not like a *developer* who designed it.

Browsing through my browser’s bookmarks and the files on my mac, I stumbled upon the USWDS folder inside the Design-System folder of my Dev files and went on to find more about…


Photo by Grianghraf on Unsplash

I’m sure you don’t know me nor follow me on Facebook. Let me assure you that this article is not clickbait. I believe in good karma. Hence I share resources and answer newbies’ questions on these groups when I don’t create websites for clients or when I’m done with my mod duties at DEV.to.

I was blocked/banned on these Facebook groups. Based on the conversations I had with the owners, if my memory serves me right, the past conversations I had with a member or the owner, some said I was *trolling* their members or them per se.

Others took…


UPDATE 04 May 2020: Site is currently down due to an issue with the droplet.

Introduction

The main plan was to develop a COVID-19 tracker in Django that shows local data in the Philippines — until the Department of Health hid and disabled the page where the stats can be scraped.

I did some crowdsourcing on Facebook and everyone shared a photo of the daily stats per city — which wasn’t what I expected — but it was my fault, my question wasn’t clear.

Coding

I already have experience in playing with API’s so I thought it would be easier now since…


I’ve been using Django for a little less than a year already if I’m not mistaken and I’d like to share the top resources I use when I’m running on a roadblock or if I’m trying to implement something that I haven’t implemented yet.

1.) Real Python

First on the list is Real Python. It is an online learning website that has Python, Django, Kivy and a lot of tutorials that help different kinds of developers with different skill sets. This site was the site I leaned on when I was building my first portfolio in Django. …


1.) Arrays — A collection of elements identified by an index or a key

example:

ex_arr = [1, ‘string’, 3, ‘four’]
print(ex_arr[3])

Answer:

four

2.) Linked Lists — A collection of data elements, called nodes that contain reference to the next node in the list and holds whatever data the application needs

example:

Linked list example

the Node class
class Node(object):
def __init__(self, val):
self.val = val
self.next = None

def get_data(self):
return self.val

def set_data(self, val):
self.val = val

def get_next(self):
return self.next

def set_next(self, next):
self.next = next

the LinkedList class
class LinkedList(object):
def __init__(self, head=None):
self.head = head
self.count = 0

def get_count(self):
return self.count

def insert(self, data):
new_node = Node(data)
new_node.set_next(self.head)
self.head = new_node
self.count += 1

def find(self, val):
item = self.head
while (item != None):
if item.get_data() == val:
return item
else:
item = item.get_next()
return None

def deleteAt(self, idx):
if…


This article is for those who don’t read the documentation, and I, who had the Dash app for a few months now, which I never tinkered until last night.

During my first day on my internship a couple of months back, I was tasked to work on the scaffold of the company on which I was overwhelmed with the tags on it and never really bothered to research about them.

Some of these are taken from the scaffold, some not.

1.) for…empty
- The for tag can take an optional {% empty %} clause whose text is displayed if the given…


Make it a habit to run git status before doing anything on a repository. I just learned this today and wanted to write it down to make it stick on my mind - or get familiar with it.

1.) To create a new branch : git branch "name_of_branch. A good practice is to name the branch with the focus of your edit.

Ex:

git branch markdown

2.) Next, run git checkout "name_of_branch" to work on your branch. Make it a habit to do small changes so it's easy to go back if you mess up.

Once done with your changes…


Originally posted on https://highceburg.tech.blog

Initializing project directory, installing the virtual environment and django:

mkdir _project_name_
cd project_name
virtualenv _dir_name_
. ./_dir_name_/bin/activate
pip3 install django

To test if the installation worked, inside the virtual environment command prompt, start the interactive interpreter by typing

python3

If the installation is successful, you should be able to import the django module and check the what version was installed:

Python 3.7.3 (default, Mar 27 2019, 09:23:15)
[Clang 10.0.1 (clang-1001.0.46.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
</pre>
<pre>>>> import django
>>> django,get_version()
'2.2'
>>>_

Exit interpreter once done.

Starting a project:

django-admin startproject _app_name_

Creating a Database:

Inside the created folder in the last step, run…


Originally published at http://highcenburg.tech.blog on May 7, 2019.

95% into my first ever Django Website with the help of this book and something came into my mind. Testing.

I recently stumbled upon the words of Jacob Kaplan-Moss, one of Django’s original creators, “Code without tests is broken as designed.” this hit me in a way that I know to my self that I suck at designing, which motivated me to learn how to test.

“Writing tests is important because it automates the process of confirming that the code works as expected.” — Django For Beginners

I tried two tests because obviously I had troubles with the first one and was getting an error:

AssertionError: 301 != 200

The first test I…

highcenburg

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store