First steps

Hi there! Days go by, week goes by, so a new post is ready to be published. This time I will present you some information about starting a project in Django and the choice of a framework. I’ll do my best to pass you some technical information. So, let’s start!

Each start-up of Django project looks almost the same. There are several steps which are repeated. After some time the pattern becomes second nature to us. The first step is to create a project. It’s a tower which we compose using a blocks called applications. This could be an authentication system or taxonomy browser. Something which can be create separately and give us some real results. I created my first app and called it “organiser”. Now it’s time to next step – configuration of the URLs.

Django lets us make a readable Internet address. We can define every part of it. In our case it will be something like this:

app_name = 'organiser'

urlpatterns = [
url(r'^$', views.index, name='index'),

Does is look difficult? Maybe but it’s easier than you think. If you want to read more, just click!

After provided a correct address, there is time to tell Django that he should take us to proper page. It happens thanks to views. These are a connections between URL address and corresponded page. So let’s take a look on views file.

def index(request):
	return render(request, 'organizer/index.html')

We can notice a function called index. It’s the same which should be run when URL address is correct. If it happens, the view will direct us to index page.

To sum up, Django reads URL address and checks if it includes in defined set. If it is correct, then we can see correct page (thanks to views). Everything happens in a three simple steps.

After the technical part, now it’s time to talk about the graphics. To create an interface I decided to use Materialize framework, not Bootstrap as I’ve thought before. Why? The first one looks more modern. I also work with Bootstrap during my school projects. This blog and the whole competition should help me to learn new skills and use different technologies so Materialize looks perfect to me. If you want to read more about it –

In meantime I’ve created an example template and I’ve chosen first colours. Here is what I’ve done.

I’m not sure If I will create a whole project in this style. I have to talk about this with other people because you know – customer is a king 🙂 That’s all for today. Enjoy your weekend!

Stay tuned for updates!

Leave a Reply

Your email address will not be published. Required fields are marked *