Hi everyone,
So, I have a django project, for which I want to create a rock. I have this as the project structure.
./.htaccess
./package-lock.json
./manifest.json
./.gitignore
./rockcraft.yaml
./manage.py
./requirements.txt
.
├── backup
├── coreandpure
│ └── __pycache__
├── coreandpure_app
│ ├── management
│ └── migrations
├── icons
├── invoice
├── media
│ ├── django-summernote
│ ├── images
│ ├── review
│ └── static
├── static
│ ├── admin
│ ├── banners
│ ├── cog-img
│ ├── css
│ ├── images
│ ├── img
│ ├── js
│ ├── new_banner
│ ├── summernote
│ ├── vendors
│ └── webfonts
├── staticfiles
│ ├── banners
│ ├── css
│ ├── img
│ ├── import_export
│ └── new_banner
├── templates
│ └── partials
└── users
├── migrations
└── __pycache__
Can anyone kindly help me with the rock setup? As I was probably not able to use the docs probably, or I didn’t understood it at all. Thanks a lot.
Hi,
There is Django extention section coming soon to the docs, and it’s currently being refactored.
Meanwhile, there is this article teaching how to use the experimental Django extension in Rockcraft. It could be a good start to learn the basics.
Furthermore, if you already written your rockcraft.yaml, please share it so we can give feedback about it.
Feel free to join our Matrix space as well.
Cheers!
1 Like
This is my rockcraft.yaml, pretty basic
name: coreandpure
base: ubuntu@22.04
version: '0.1'
summary: Website for coreandpure
description: |
This is coreandpure's description. You have a paragraph or two to tell the
most important story about it. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the
container registries out there.
license: proprietary
platforms:
amd64:
extensions:
- django-framework
parts:
django-framework/install-app:
plugin: dump
source: .
organize:
coreandpure: django/app/coreandpure
coreandpure_app: django/app/coreandpure/coreandpure_app
manage.py: django/app/manage.py
stage:
- django/app/coreandpure
- django/app/manage.py
prime:
- django/app/coreandpure
- django/app/manage.py
Also, would like to have your opinion on using rocks for django based websites, is it really viable?
Hey again. sorry for the delay.
I don’t see anything wrong with your rockcraft.yaml. Perhaps you can join us in the Stracraft clinics so we can see what problems are you facing and troubleshoot it.
1 Like