Trending questions in Edureka Community

0 votes
1 answer

Python Error: Can't find '_main_' module in 'C:/Users/DELL/Pythonprojects/Aks'

I can see there no Python file ...READ MORE

Jun 25 in Python by Karan
• 10,310 points
26 views
0 votes
1 answer

How to secure APIs for Registration and Login in Django Rest Framework?

Hello @kartik, you cannot have an authentication system ...READ MORE

Jun 25 in Python by Niroj
• 32,200 points
18 views
0 votes
1 answer

How to create lambda function inside a list in Python?

Hi@akhtar, The lambda statement can appear in places ...READ MORE

Jun 25 in Python by MD
• 31,430 points
19 views
0 votes
1 answer

How to create a virtual environment to run a particular version of python?

Hi@akhtar To create a virtual environment, decide upon ...READ MORE

Jun 25 in Python by MD
• 31,430 points
16 views
0 votes
1 answer

KeyError: "['Place'] not found in axis"

Hi@akhtar, You need to provide the axis parameter ...READ MORE

Jun 24 in Python by MD
• 31,430 points
86 views
0 votes
1 answer

How to import an image into a csv file using python?

I am sure you are aware CSV ...READ MORE

Jun 25 in Python by Bhanu Kumar
22 views
0 votes
1 answer

Error:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

Hello @kartik, It looks like you don't have ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
68 views
0 votes
1 answer

How to add annotate data in django-rest-framework queryset responses?

Hello @kartik, The queryset returned from get_queryset provides ...READ MORE

Jun 25 in Python by Niroj
• 32,200 points
20 views
0 votes
1 answer

Python: TypeError :Cannot cast Index to dtype int

Try to use numpy  and use .astype(np,int) ...READ MORE

Jun 25 in Python by Sirajul
• 54,010 points
23 views
0 votes
1 answer

How to PATCH a single field using Django Rest Framework?

Hello @kartik, Serializers allow partial updates by specifying partial=True when initializing ...READ MORE

Jun 25 in Python by Niroj
• 32,200 points
20 views
0 votes
1 answer

How to save one list in a text file in Python?

Hi@akhtar, There is no inbuilt function available to ...READ MORE

Jun 25 in Python by MD
• 31,430 points
14 views
0 votes
1 answer

How to pass django rest framework response to html?

Hello @kartik, You need to use an @api_view decorator ...READ MORE

Jun 25 in Python by Niroj
• 32,200 points
16 views
0 votes
1 answer

How to return the current user with Django Rest Framework?

Hello @kartik, The best way is to use ...READ MORE

Jun 25 in Python by Niroj
• 32,200 points
24 views
0 votes
1 answer

What is the difference between map() and filter() function in python?

The map() function is a type of ...READ MORE

Jun 25 in Python by Sirajul
• 54,010 points
13 views
0 votes
1 answer

Recursive Pattern Using Python

n = int(input("please enter your no:")) k = ...READ MORE

5 days ago in Python by Shaurya Thapliyal
• 340 points
30 views
0 votes
1 answer

Error:annot apply DjangoModelPermissions on a view that does not have `.queryset` property or overrides the `.get_queryset()` method

Hello @kartik, You probably have set DjangoModelPermissions as a default ...READ MORE

Jun 25 in Python by Niroj
• 32,200 points
15 views
0 votes
1 answer

Can anyone help to write a regular expression to fetch TEST:31275 from the below text?

Try using the following expression: Grep -o "TEST:d+" ...READ MORE

Jun 25 in Python by Nipul Aglawe
9 views
0 votes
1 answer

NameError on coding

well i think the sapi5 is not ...READ MORE

5 days ago in Python by Shaurya Thapliyal
• 340 points
29 views
0 votes
1 answer

Importing Image

Hi@Amine, The error is because there is some ...READ MORE

Jun 25 in Python by MD
• 31,430 points
21 views
0 votes
1 answer

how to run spark job from EC2 to EMR?

Hi, You can follow the below-given steps to ...READ MORE

Jun 25 in Apache Spark by MD
• 31,430 points
23 views
0 votes
1 answer

while executing this I am getting this error can anyone please help me with the solution please

This happens when you have added the ...READ MORE

Jun 25 in Software Testing by Sirajul
• 54,010 points
17 views
0 votes
1 answer

ModuleNotFoundError: No module named 'twilio'

Hi@akhtar, It seems you don't have a Twilio ...READ MORE

Jun 24 in Python by MD
• 31,430 points
27 views
0 votes
1 answer

Error:Can't connect to local MySQL server through socket '/tmp/mysql.sock

Hello @kartik, Try the code below: sudo /usr/local/mysql/support-files/mysql.server start ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
40 views
0 votes
1 answer

How to output text from database with line breaks in a django template?

Hello @kartik, Use linebreaks or linebreaksbr filter: {{ text|linebreaks }} Or surround the text ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
30 views
0 votes
1 answer

Error:Python3.4 can't install mysql-python

Hello @kartik, You can resolved this by the ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
21 views
0 votes
1 answer

How to call an external command from Python?

Hi@akhtar, You can use the os module in ...READ MORE

Jun 24 in Python by MD
• 31,430 points
17 views
+1 vote
1 answer

How to install django in anaconda prompt?

Here are the steps that you can ...READ MORE

Jun 23 in Python by Sirajul
• 54,010 points
23 views
0 votes
0 answers
0 votes
1 answer

How do I call a Django function on button click?

Hello @kartik, There are 2 possible solutions that ...READ MORE

Jun 23 in Python by Niroj
• 32,200 points
58 views
+1 vote
2 answers
0 votes
1 answer

How to set the encoding for the tables' char columns in django?

Hello @kartik, Django does not specify charset and ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
18 views
0 votes
1 answer

ERROR: mysql 1018 (HY000): Can't read dir of '.' (errno: 13)

Hello @kartik, You need to set ownership and ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
19 views
0 votes
1 answer

How can I use Django database layer outside of Django?

Hello @kartik, You just need to configure the ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
18 views
0 votes
2 answers

Which IDE should I use for python?

Pycharm or Spyder. You can even use visual ...READ MORE

Jun 23 in Python by Anjali
18 views
0 votes
1 answer

ModuleNotFoundError: No module named 'pytest'

Hi@akhtar, You need to install pytest module in ...READ MORE

Jun 24 in Python by MD
• 31,430 points
38 views
0 votes
1 answer

pytest: error: unrecognized arguments: --html=basic.html

Hi@akhtar, You have to install one module named ...READ MORE

Jun 24 in Python by MD
• 31,430 points
36 views
0 votes
1 answer

module 'numpy' has no attribute 'unit8'

Hi@akhtar, You have used unit8 in your code. ...READ MORE

Jun 22 in Python by MD
• 31,430 points
83 views
0 votes
1 answer

How to Specify a mySQL ENUM in a Django model?

Hello @kartik, You can follow this snippet below: MAYBECHOICE ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
18 views
0 votes
1 answer

Error: Failed to download metadata for repo 'AppStream'

Hi@akhtar, I think network connectivity is not proper ...READ MORE

Jun 22 in Docker by MD
• 31,430 points
100 views
+1 vote
1 answer

Error:Django gives Bad Request (400) when DEBUG = False

Hello @kartik, With DEBUG = False in you settings file, ...READ MORE

Jun 23 in Python by Niroj
• 32,200 points
22 views
0 votes
1 answer

How to run Django's test database only in memory?

Hello @kartik, If you set your database engine ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
15 views
0 votes
1 answer

How to use MySQLdb with Python and Django?

Hello @kartik, I had the same error and pip ...READ MORE

Jun 24 in Python by Niroj
• 32,200 points
15 views
0 votes
1 answer
0 votes
1 answer

ImportError: numpy.core.multiarray failed to import

Hi@akhtar, You need to upgrade your Numpy library. ...READ MORE

Jun 22 in Python by MD
• 31,430 points
83 views
0 votes
1 answer

Error while installing Django with Anaconda.

This error is probably because you don't ...READ MORE

Jun 24 in Python by Sirajul
• 54,010 points
16 views
0 votes
1 answer

How to delete column from pandas DataFrame?

Hi@akhtar, You can use the del command in ...READ MORE

Jun 24 in Python by MD
• 31,430 points
20 views
+1 vote
1 answer

Error:Getting Site Matching Query Does Not Exist Error after creating django admin

Hello @kartik, The Site object for your Django project is ...READ MORE

Jun 22 in Python by Niroj
• 32,200 points
34 views
0 votes
1 answer

How to create Pytest report in html format?

Hi@akhtar, You can create a Pytest report in ...READ MORE

Jun 24 in Python by MD
• 31,430 points
15 views
0 votes
1 answer

How to create an empty NumPy array?

Hey, @Roshni, To create an empty array with ...READ MORE

Jun 23 in Python by Gitika
• 31,310 points
25 views
0 votes
1 answer

How to install Tensorflow in pycharm ?

For installing TensorFlow your system must be ...READ MORE

Jun 23 in Python by Varsha Kumari
38 views