16 lines
500 B
Python
16 lines
500 B
Python
import os
|
|
import platform
|
|
|
|
from django import get_version as django_version
|
|
from django.shortcuts import render
|
|
from django.utils import timezone
|
|
|
|
|
|
def index(request):
|
|
if request.method == 'POST':
|
|
subject_area = request.POST.get('subject_area', '')
|
|
# For now, just render the page with the submitted subject
|
|
# In the next step, we will save it and generate prompts
|
|
return render(request, 'core/index.html', {'subject_area': subject_area})
|
|
return home(request)
|