# Add this exactly as shown in your error message

CSRF_TRUSTED_ORIGINS = [

    'https://fine-apples-stop.loca.lt',

]


ALLOWED_HOSTS = ['*']


# Install localtunnel
!npm install -g localtunnel

# Start your Django server in the background
import subprocess
subprocess.Popen(['python', 'manage.py', 'runserver', '8000'])

# Create the public link
!npx localtunnel --port 8000


# Download Flutter SDK
!git clone https://github.com/flutter/flutter.git -b stable

# Add Flutter to the system path
import os
os.environ['PATH'] += ":/content/flutter/bin"

# Check if it's working
!flutter doctor


!flutter create barber_app
%cd barber_app



import os

# 1. Download Flutter SDK again
!git clone https://github.com/flutter/flutter.git -b stable /content/flutter

# 2. Add to Path and fix permissions
os.environ['PATH'] += ":/content/flutter/bin"
!chmod +x /content/flutter/bin/flutter

# 3. Create the Flutter project
!/content/flutter/bin/flutter create /content/barber_app

# 4. Verify the folder exists
!ls -d /content/barber_app





Post a Comment

Previous Post Next Post