Missing manage.py & settings.py

749 views
Skip to first unread message

lujate

unread,
Mar 2, 2019, 1:14:05 AM3/2/19
to Django users
I pip installed a Django project, but it doesn’t have a manage.py or settings.py. I checked the repo on GitHub, and those files don’t exist there either. Is this an alternate way of doing a Django project that I’m not aware of?

FWIW, the project is django-wiki.

TIA

Dylan Reinhold

unread,
Mar 2, 2019, 3:50:25 AM3/2/19
to django...@googlegroups.com
The project django-wiki is not a django project, it is a django app. You include the app in your project.
The settings file in the install document is your settings file from your django project.

Dylan

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/30fc5fdc-6bd6-4807-99ff-c41e6e109642%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lujate

unread,
Mar 2, 2019, 4:00:47 AM3/2/19
to Django users
Interesting. I never thought about doing a pip install of an application. I'm going to have to digest that one.

Thanks

Derek

unread,
Mar 4, 2019, 7:13:28 AM3/4/19
to Django users
Pretty much *all* the apps you use in your Django project will be installed via pip ...

lujate

unread,
Mar 5, 2019, 12:04:35 AM3/5/19
to django...@googlegroups.com
I'm still pretty new with Django. I've used a few 3rd party utilities but no apps. 

I have it installed, and I'm working on am error in my INSTALLED_APPS now. 

Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/UNcOwcHuox8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Mario Martinez

unread,
Mar 5, 2019, 12:59:53 AM3/5/19
to django...@googlegroups.com
Did you run the django-admin startproject your_project_name command?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

lujate

unread,
Mar 5, 2019, 1:59:39 AM3/5/19
to django...@googlegroups.com
I created a scratch project for R&D.
I did a runserver and confirmed the default landing page. 
I added the apps to the settings file per the docs. 
I ran a migrate per the docs and got an error on one of the apps. 
I tried a runserver and got the same error. 
I dug into site-packages and confirmed the app was there. 

I added multiple apps, and there's only an error on one. I don't know if that's because the others are fine,  or it just stopped at the first error. 

Thanks

You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/UNcOwcHuox8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

ambesh chand shahi

unread,
Mar 6, 2019, 5:12:52 PM3/6/19
to django...@googlegroups.com
You should first type django-admin startproject "your project name".

Then if you are using python3 then type python3 manage.py startapp "appname".

After that include that app in settings.py in Installed apps.


lujate

unread,
Mar 7, 2019, 12:05:42 AM3/7/19
to django...@googlegroups.com
What purpose does startapp serve when you're only using a pip installed app? 



Gil Obradors

unread,
Mar 7, 2019, 6:23:17 AM3/7/19
to django...@googlegroups.com
For create it  yourself from 0

El dj., 7 de març 2019, 01:05, lujate <jtaylo...@gmail.com> va escriure:

lujate

unread,
Mar 8, 2019, 2:14:02 AM3/8/19
to django...@googlegroups.com
I'm sorry,  I don't understand what you're trying to say. 

Andréas Kühne

unread,
Mar 8, 2019, 8:46:47 AM3/8/19
to django...@googlegroups.com
The reason you have startapp in django-admin is because you might want to start a new part of your project from scratch. For example if you are selling ice-cream online and have models for ice-creams in the ice_cream app and you want to start selling cupcakes as well, you can then start a new app called cupcakes that has the templates, models and views for cupcakes.

Regards,

Andréas


lujate

unread,
Mar 8, 2019, 11:53:54 PM3/8/19
to django...@googlegroups.com
I know what startapp is for. I'm just wondering why it's applicable here. 

To recap, I have a 3rd party Django app that I need to pip install. I created a project to contain the app. When I add the app to installed apps in my settings,  Django errors on start up. 

If startapp is still required for a pip installed app, I can do that easily enough. Does it matter the name of the app I create? I'm afraid I'll have a conflict if I use the same name as the pip installed app.

Thanks

gauravsriv...@gmail.com

unread,
Mar 9, 2019, 5:07:17 AM3/9/19
to Django users
after installing django inside virtual environment write following commands:
django-admin startproject "you_project_name"
go inside this folder and then type
python manage.py startapp "your app name"
this command will create apps
and after this include your app inside installed apps

Sithembewena L. Dube

unread,
Mar 9, 2019, 5:16:04 AM3/9/19
to django...@googlegroups.com
Understand the difference between a project and an app. See "Projects vs. apps" at the following link (correct for current version).

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Andréas Kühne

unread,
Mar 9, 2019, 12:21:31 PM3/9/19
to django...@googlegroups.com
If you have added an app via pip install and added it to settings.py, you should not create an app with startapp - and you should definitely not create an app with the same name as a pip installed django app. That will result in conflicts.

In this case startapp shouldn't be used no.

Regards,

Andréas


Reply all
Reply to author
Forward
0 new messages