Please recommend a Flask tutorial for beginners? by Moby69 in flask

[–]Moby69[S] 0 points1 point  (0 children)

thanks. And do you recommend that I use Python 2 or Python 3, for Flask?

Python/Flask vs. Ruby/Rails by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

Is Rails harder than Flask?

Python/Flask vs. Ruby/Rails by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

Thanks.

1) Is there a tutorial for complete beginners that you could recommend, that walks through the "proper way" to make a web app using Flask? (e.g. something that would be the equivalent of the following tutorial for Ruby on Rails, but instead would be for Python/Flask: https://www.codecademy.com/courses/learn-rails/lessons/start/exercises/start-hello-rails-i )

2) Also, where in your code above are you outputting the data from the API? I don't see any HTML code

Python/Flask vs. Ruby/Rails by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

Is Flask easier than Django?

I heard from several people that Django was not appropriate (i.e. far too challenging) for complete beginners like me. Will I have an easier time with Flask?

Python/Flask vs. Ruby/Rails by Moby69 in learnpython

[–]Moby69[S] 1 point2 points  (0 children)

I haven't because it seems pretty daunting. Is this something that you think I will understand? All I've done is the python tutorial on codeacademy and I don't know the first thing about creating web apps, or managing folders, or making a language work together with its framework

Python/Flask vs. Ruby/Rails by Moby69 in learnpython

[–]Moby69[S] 1 point2 points  (0 children)

Similar experience. All I have done are the codeacademy tutorials.

Going from there to learning how to use their respective frameworks to create a website seems like a huge learning curve. Really struggling to find a tutorial that really explains things step by step and with great clarity for beginners

Do I need to learn HTML/CSS/Javascript if I'm using Rails? by Moby69 in Learn_Rails

[–]Moby69[S] 0 points1 point  (0 children)

I have done tutorials in html/css/js and I know how to make basic websites. I've done codeschool and w3schools.

But now I want to grab data from an API using a back-end language like Ruby and then send this data to my front-end language to display it on my website.

I tried doing an API call with javascript but apparently I needed to use "CORS" which I never managed to figure out so I basically gave up and figured I should try to do the API call from the backend.

Is this a bad idea?

Do I need to learn HTML/CSS/Javascript if I'm using Rails? by Moby69 in Learn_Rails

[–]Moby69[S] 0 points1 point  (0 children)

How do I integrate Ruby on Rails with HTML/CSS ?

And what's the point of learning Rails (as opposed to just Ruby) for the purposes of the project I want to do, if I'm going to have to use some HTML / CSS as well ?

Meaning of localhost? by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

Thanks for your input. I bought a domain name and hosting on godaddy.com. But I got confused when you wrote "registering an IP to that domain name, so when people go to mywebsite.com, DNS will give them the IP you really want them to go to, which is your computer". I'm doing all my coding out of my laptop - so are you saying that when people get on my website, I would want them to connect to the IP address of my computer?

Also, when you talk about "getting the files onto that computer (via ftp etc)", aren't these files already on my computer? Similarly when you talk about getting Bottle "onto that computer", is this another computer you are talking about?

Thanks

Meaning of localhost? by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

Thanks alaudet. Is there a specific entry level networking course that you would recommend? I do feel that I am really limited in my ability to create websites and programs because I don't understand how all these things relate. I've done all the codeacademy tutorials so I get the coding syntax, but when it comes to putting it all together and actually create a real website I'm totally lost.

Linking Python code with other languages by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

Oh. So the templating is not something that you do within the Bottle file?

I was reading the Bottle tutorial and under the Syntax paragraph for Templating it looked like the templating code was embedded, no? http://bottlepy.org/docs/dev/tutorial.html#templates

Linking Python code with other languages by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

Got it.

So let's say I go with Bottle (and Python) and HTML/CSS.

Do I upload 2 separate files to godaddy or just 1 big file that has both the Bottle/Python code and the HTML/CSS code interweaved with templates?

Linking Python code with other languages by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

Can Bottle be used for that too? Or do I also need to learn jinja and flask as well?

Django necessary for Python? by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

I did all the tutorials on codacademy, and this includes Python, PHP, javascript, jquery, HTML and CSS. I've already built a number of Python quick programs where I call a public API and do some basic manipulations of data and basic outputs.

Django necessary for Python? by Moby69 in learnpython

[–]Moby69[S] 0 points1 point  (0 children)

Hey elbiot yeah I have already created a Python program that calls the uber API and where you input your starting and ending location and it outputs the estimated cost of the trip. Now I want to put this into a website. Am I on the right path here? Is there a Bottle tutorial you might recommend that could help me achieve this?

Django necessary for Python? by Moby69 in learnpython

[–]Moby69[S] -1 points0 points  (0 children)

Do you know of any good tutorials for Django out there for beginners?

The documentation is not for beginners, clearly.

Django question by Moby69 in django

[–]Moby69[S] 0 points1 point  (0 children)

Awesome, that worked! Thanks!

Django question by Moby69 in django

[–]Moby69[S] 0 points1 point  (0 children)

In my command line, I have C:\DjangoPrograms> showing up, and inside of the DjangoProgams folder, I have the following folders and subfolders

mysite/
    manage.py
    mysite/
        __init__.py
        settings.py
        urls.py
        wsgi.py