2

Type python manage.py runserver 0.0.0.0:8080 and start the server. Then click the web server option in the IDE. After going to the site, remove the -beta from the url and press enter. It will show disallowed host. So now add the url to the allowed hosts like this ["{{the url you got}}", '0.0.0.0']. Then wait for the server to reload or restart the ...


2

I think it's because of how UNIX and Windows format their timestamps. From https://strftime.org/: The Python docs contain all the format codes that the C standard (1989 version) requires, and these work on all platforms with a standard C implementation. Note that the 1999 version of the C standard added additional format codes. These include codes for non-...


1

Have a look at what your index renders if user buys 2 shares of something. I suspect it will show the price twice and not "total value for each holding". The usd function returns a string, so price will be treated by database as a string because price = usd(price). (sqlite uses dynamic typing, more detail can be found in the doc) python will gladly ...


1

The 'duplicate' check first registers a new user (which would return a 200) and then tries to register that same user (which would return a 400). The error you are seeing saying it was expecting a 200 and didn't get it. That tells me that it is the initial registration that is failing. If you delete all the rows from your user table and run check50 again, ...


1

There seems to be a clash between the url paths defined as both are taking in similar patterns as arguments:- path("str:title", views.title, name="title"), path("search", views.search, name="search") search here is being redirected to views.title with the title="search" Hope this is helpful.


1

In the entry page, at the end you are specifying a url which should take you to the edit page. But instead it reloads the entry page as the path is 'entry' not 'edit'. If you do this small change then your code should work. Hope this helps. If it does please check the tickmark


1

Nevermind, I have been able to figure it out. I had to use a GET request.


1

I had that problem too! well I don't know why but in Windows I got same error but in Mac OS it runs without any problem... You can fix it by replacing timestamp line with: "timestamp": self.timestamp.strftime("%A, %d. %B %d/%m/%Y %I:%M%p"), I just changed the format of the timestamp and it worked! hope this answer helps you:)


Only top voted, non community-wiki answers of a minimum length are eligible