I am trying to make a website with Django that can get Reddit user's data with a module called PRAW
In my views.py for the app called Data, I tried to import PRAW and do things with it and template things with Django.
I am using PyCharm, so the module PRAW has already been installed in my VirtualEnv. There were no errors importing PRAW in the file alone as well. (I ran the file directly in PyCharm and no error showed up)
However, when I run the server, I get:
ModuleNotFoundError: No module named 'praw'
Imports made in
views.py
from django.shortcuts import render, redirect import praw
Something wrong happens with the
import praw
statement when server is ran for some reason.Thanks in advance.
score:0
Open cmd in venv directory. activate virtual env "Scripts\activate" install praw "pip install praw" it shouldnt show the error msg now, even though it might marked with red line in pycharm just run your script ftom cmd with "python filename.py"
Credit To: stackoverflow.com
Related Query
- ModuleNotFoundError - No module named 'main' when attempting to start service
- ModuleNotFoundError : no module named : crispy_forms
- Heroku: ModuleNotFoundError :No module named 'requests'
- pip install error: ModuleNotFoundError No module named 'setuptools'
- django error: ModuleNotFoundError No module named 'siteerrors'
- No module named pkg_resources
- No module named MySQLdb
- ImportError: No module named 'django.core.urlresolvers'
- django import error - No module named core.management
- Django Rest Framework -- no module named rest_framework
- Django - "no module named django.core.management"
- Error: No module named psycopg2.extensions
- django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
- Django import error - no module named django.conf.urls.defaults
- Gunicorn, no module named 'myproject
- ImportError: No module named virtualenv
- django.core.exceptions.ImproperlyConfigured: Error loading psycopg module: No module named psycopg
- "No module named simple" error in Django
- Running django tutorial tests fail - No module named polls.tests
- ImportError: No module named django.core.wsgi Apache + VirtualEnv + AWS + WSGI
- ImportError: No module named django_filters
- No module named 'polls.apps.PollsConfigdjango'; Django project tutorial 2
- No module named django but it is installed
- ImportError: No module named django.core.handlers.wsgi in install django mod_wsgi config on apache
- Django: from django.urls import reverse; ImportError: No module named urls
- Import Error: No module named django
- Django Shell No module named settings
- Django: "No module named context_processors" error after reboot
- ImportError: No module named django.core.management when using manage.py
- No module named urls
More Query from same tag
- Mark the label of required fields when using Django ModelForm
- JQuery not responding in Django
- Django check to see if field is blank?
- Django media file path is incorrect, missing a directory
- Checking that an object exists in DB (Django)
- django Error: "DoesNotExist at /login/" ,after deployment to heroku
- What is my user and pass? Deploy django on AWS EC2 but can not login admin
- default value for django choice field
- override templates in django-allauth
- Best practice setup for two websites with different style sheets and templates, but similar Django back end
- Python - Making a POST request
- heroku django south does not appear to use migrations
- How to use incontains for filtering by using foreignkey in django?
- uwsgi + django via Nginx - uwsgi settings/spawn?
- Removing collected static files