-1

I have a Django project that serves as the back-end for my application, and I want to use Quasar as the front-end framework. I have already created a Quasar application using the quasar create command and it works fine when I run it separately. Now, I want to integrate this Quasar application into my Django project so that it can be served by Django's development server.

`STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'frontend/dist/spa') ]

STATIC_ROOT = os.path.join(BASE_DIR, 'static')

from django.http import JsonResponse

def my_api_view(request): # handle the API call here # return a JSON response data = {'message': 'Hello, world!'} return JsonResponse(data) `

1
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Mar 19 at 4:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.