Eroor in command django-admin manage.py make migrations [closed] - django

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
this is the entire output of this command then the output is looked like this.now as a beginner its very difficult for me to solve it

You need to use manage.py not django-admin.py.
In future, please ask proper questions on StackOverflow: you should explain the issue, copy and paste the actual text of the error (not a screenshot) into the question itself, and describe exactly what you tried to fix it.

firstly the command should be:
python manage.py runserver
second are you using virtualenv? If so your virtualenv is not activated and that is causing this error. And if you're not, then you should see some tutorial on using django with virtualenv.
However, if you dont want to use virtualenv(highly unrecommended), you should probably export the DJANGO_SETTINGS_PATH variable in your terminal thus:
$ export DJANGO_SETTINGS_MODULE='project_name.settings'

Related

Deep linking in docusaurus generates 404 page not found errors [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 months ago.
Improve this question
ampersandtarski.github.io is a site generated with docusaurus and hosted by github pages. Currently, during generation docusaurus doesn't detect any broken links. Also, the links at the site work as expected, as long as you use the links from the site themselve.
The weird thing is, that whenever you copy a link and open it in a new tab of your browser, it returs a 404-page-not-found error. Therefor deep linking to specific pages on the site doesn't work as well.
I am amazed by this phenomenon, and I am clueless to where to look for a (direction to a) solution.
Does anybody have an idea on what may cause this undesired effect?
Thanks for reading!
Finaly I figured out what was going wrong. It had to do with the casing. A directory where most of the docs were stored, started with an upper-case character. After changing this all to lowercase, my problem was solved.

Cpp file says [converted] and is a bunch of random characters [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
My code was converted to these random characters at some point after I saved my program using Vi. I did this project for a grade in one of my college courses and didn’t get any credit, despite the fact that I spent hours working on my code for this to happen. If anyone knows how to convert it back to C++ I would be thankful.
Turns out I had saved my file under the wrong folder and I was able to recover my original file. Thanks to all for helping out with this! It seems like it always tends to be something so simple...

How to include dinput.h [C++] [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
I'm trying to include dinput.h, however, CodeBlocks isn't able to find it. I searched online and people have been going all over the place on how to find the solution.
#include <dinput.h>
Is there an easier way to include that header?
Here's the build message:
fatal error: dinput.h: No such file or directory
If you can find the file in your local file system then include it by:
#include "Path to file/dinput.h"
On windows replace / with \ using quotes will enable a search in the file system where as using:
< >
Uses the environment variables.
Nevermind. I found the header file here:
ftp://ftp.physik.hu-berlin.de/pub/useful/dx7asdk/DXF/include/dinput.h
Works like a charm.
Just have to make a new file and include the header file like this:
include "dinput.h"

Qt creator error during release qmake [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I have error when I try qmake my project in release mode. In debug mode everything is ok, but when I change to release - 'magic' starts. I have no clue what is wrong. Before I could several times qmake release version. What am I doing wrong? (below some output - sorry for partly polish information)
ASSERT: "fileName.isEmpty() || isAbsolutePath(fileName)" in file Q:\qt5_workdir\w\s\qtbase\qmake\library\ioutils.cpp, line 61
20:20:45: Proces "C:\Qt\Qt5.1.1\5.1.1\msvc2010_opengl\bin\qmake.exe" zakończył się kodem wyjściowym 1.
(translate: 20:20:45: Process "C:\Qt\Qt5.1.1\5.1.1\msvc2010_opengl\bin\qmake.exe" finish with return code 1.)
This is not quite magical. You either used back slashes, etc, a.k.a. wrong input path or were simply facing this already fixed bug in later versions:
qmake is crashing with "Qwt 6.1 rc3" and Qt 5
As you can see, this was fixed in 5.2.0 when wrong path is supplied. Based on your comment that Q:\ was unknown for you, it could also be the reason for the crash.

Sphinx code validation for Django projects [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
I have a Django project with a couple of apps - all of them with 100% coverage unit tests. And now I started documenting the whole thing in a new directory using ReST and Sphinx. I create the html files using the normal approach: make html.
Since there are a couple of code snippets in these ReST files, I want to make sure that these snippets stay valid over time. So what is a good way to test these ReST files, so I get an error if some API changes made such a snippet invalid? I guess there have to be some changes in conf.py?
Turned out that I had some python paths wrong. Everything works as expected - as noted by bmu in his comment. (I'm writing this answer so I can close the question in a normal way)