N
N
neodekvat092015-06-12 21:50:14
PostgreSQL
neodekvat09, 2015-06-12 21:50:14

How to create a postgreSQL database?

There is an application (blog) on ​​how to create a postgreSQL database. The code is fully working, the source code is on github. Everything seems to be clear, except for one thing - How to create this very db? The application itself is launched on a local server using virtualenv

Although there is a "text hint" in the readme, but I don't understand where to insert this very text hint ?

The sources themselves: https://github.com/dlamichhane/Flask-blog/tree/mas...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-12-22
@bIbI4k0

Install the DBMS itself - postgres. Install a management tool, pgadmin for example.
Based on this line (dsn-description of the connection to the database), we are guided by what we need to do:
postgresql://scott:[email protected]/flaskblog
Next:
1. Run pgadmin
2. Start the user scott with the password tiger
3. create the flaskblog database
4. Import the specified sql code into it. :)
If you want to change the connection data, then don't forget to specify the new DSN in
https://github.com/dlamichhane/Flask-blog/blob/mas...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question