how to build a single page generator with AI and Django

I want to build a portfolio generator or any single page with AI prompts and Django but i want to add an editor or a way like this

into the website to let the user use it to edit it as he needs.
another question what is the best thing to do!
should i make it just one call to the AI model to generate the code in one page or structure the website into small pieces and let it fill them with the content that i need or any guides to build it ?
Any help or advice will be very useful to me this is the first Django project i am tring to build i am new to Django i just started to learn about it for around 20 days, Thanks in advance!

You haven’t mentioned how you’ve been learning Django - hopefully you have worked your way through the Official Django Tutorial or the Django Girls Tutorial or both. They provide exposure to the most useful set of fundamentals that you will need to know.

Regarding your project, if you don’t have much experience with software development in general, you’ll want to break your project down into smaller steps. First is going to figure out exactly what it is you’re trying to build - what the UI/UX is going to be from start to finish. Once you have a solid idea of what this is going to look like and how its going to act, then you can map out what you need to do to get there.

But don’t try to do everything at once. Work in small, incremental, and verifiable steps. Try to make sure you understand what you’re doing - and why - for every line of code you write.

1 Like

Thanks for your reply.
I have read the first 5 chapters of Django by example book and the first 9 chapters of matt layman book.
I have watched and do the todo app and a website for sharing photos, blog website and album photos in simple way.
Ok if i will think with you what i want to do at first is just want to create a landing page from a prompt the takes the business Name and a description and then rener thr code in Django and then add button to download the code this the minimum thing that i should do!
I really feel it is easy to do but i have a lot of fear didn’t understand the idea of hoe to connect the model, view and templates and what will i add in the Django model for the css and html what i should do!
Should i tell the ai to create it with tailwind or bootstrap!
Can you tell steps to do this only! Thanks a lot and i want to tell you small thing if i was able to do this part before 14 in this month this will means a lot to my life!

Let’s break this down a little further then.

You wrote:

So it sounds like you want to do the following:

  • Allow the user to enter a business name and description
  • Generate a page
  • Allow the user to download that page.

If that’s correct, then your first step would be to create your page allowing a user to enter the business name and description.

Any form of comfort with this will only come from actually doing it. I would just strongly suggest you keep three things in mind:

  • You are going to make mistakes.
  • Finding and fixing mistakes is a significant part of the learning process.
  • All mistakes can be fixed - even if it means deleting everything and starting over.

Thanks mr KenWhitesell, I want to tell you that i finished the project and it works i deleted it 2 times watched a lot of videos and had some hard times but i did it finally and finished phase 1.
So thanks for you help, i was going to give up and get back into other things and leave this project :slight_smile: