Find Interview Questions for Top Companies
Mistral solutions pvt. ltd Interview Questions and Answers
Ques:- How you can set up the database in django?
Right Answer:
To set up the database in Django, follow these steps:

1. Install the database adapter (e.g., `psycopg2` for PostgreSQL).
2. In your Django project, open `settings.py`.
3. Locate the `DATABASES` setting and configure it with your database details, like this:

```python
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql', # or 'sqlite3', 'mysql', etc.
'NAME': 'your_database_name',
'USER': 'your_username',
'PASSWORD': 'your_password',
'HOST': 'localhost', # or your database host
'PORT': '5432', # or your database port
}
}
```

4. Run `python manage.py migrate` to create the necessary database tables.
5. Optionally, create a superuser with `python manage.py createsuperuser` for admin access.
Ques:- Help me to write a c++ program using strings that does the following tasks 1)Removes multiple spaces between words. 2)find the longest word in a text. 3)extract the number of integers in the text. 4)extract the number of doubles.5)extract the number of wo
Ques:- What does the message “warning: macro replacement within a string literal” mean?
Comments
Admin May 17, 2020

its nothing but a fakalya.

AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users