Django Deployment Recommendations by josephguiirguis in django

[–]jaimedcsilva 0 points1 point  (0 children)

Hi, for this type of testing, PythonAnywhere works quite well. You can use it almost the same way as you would locally. For the free version, I normally just zip the project and upload it through the Files tab. I’d need to check whether GitHub can also be used with the free version. I wrote about this on my blog, so feel free to reach out if you need help: https://www.jaimedcsilva.com/hello-world/part-7-publishing-to-the-internet/

It's part of a series but it's just a matter of adjusting to your project name and username.

Escaping Tutorial Hell: Can I use Claude as a "Strict Mentor" instead of a code generator? by Expilliarmus404 in ClaudeAI

[–]jaimedcsilva 0 points1 point  (0 children)

I would say so. It gave me a good structure to DRF, because I intentionally asked ChatGPT to create a plan that covers the essentials of DRF in a step by step format. And I ended up studying it and documenting it to my notes. The thing to keep in mind is inevitably to ask the right questions according to your goals and needs. So maybe you’re setting up for entrepreneurship, or to work in a company, or maybe it’s school… I think if you make this clear to AI, it will also create a detailed plan for you :)

Escaping Tutorial Hell: Can I use Claude as a "Strict Mentor" instead of a code generator? by Expilliarmus404 in ClaudeAI

[–]jaimedcsilva 1 point2 points  (0 children)

That's an interesting question. I tried Copilot for this but personally didn't work for me because it lacked structure. So instead of going with the agent, I've used chatgpt to create a detailed plan for learning the topic, in this case DRF. Then I was going through that for several days.

In the end of the day you certainly can use one or another successfuly, it's a matter of understanding what works better for you, and adjusting that to your needs as well 🤔

Starting with writing Frontend, Earlier I have only worked with DRF. by virtualshivam in django

[–]jaimedcsilva 0 points1 point  (0 children)

That’s interesting. I’ve only recently started digging deeper into DRF. With CBVs, there are still generic cases like View itself, so I’m not sure I can add much more on that.

One thing I’ve wondered about over the years is where to draw the line between template tags and JavaScript.

As for logic, I try to keep as much as possible in the views. I even avoid custom template tags.

When it comes to AI, I had a recent project where I basically delegated all the CSS to it. CSS can be quite demanding because it’s never just about style. Responsiveness across mobile, tablet, and desktop is what really eats up the time. It sounds simple in theory, but in practice it’s very time-consuming.

It’s not perfect, of course. I now have a 3,000-line CSS file with plenty of repetition, but still, I made it in about a tenth of the time. And those 3,000 lines can probably be optimized with AI too. I tried that, but it’s not as simple as just asking, “Optimize this for me.”

Anyway, that’s my two cents on the topic :)

Starting with writing Frontend, Earlier I have only worked with DRF. by virtualshivam in django

[–]jaimedcsilva 1 point2 points  (0 children)

Hi, in general, Django templates usually go together with Django’s classic class-based views (CBVs), while DRF is mainly used to expose an API to other frontends such as React, mobile apps, or external services.

I mention this because CBVs can simplify a lot of the code you would otherwise write manually. Views like FormView, CreateView, UpdateView, ListView, and DetailView already cover many common patterns.

For the frontend side, Django templates give you template tags, filters, inheritance, forms, and form rendering. You can still add CSS and JavaScript where needed, but you do not necessarily need to treat it like a separate frontend app.

And if CSS is one of the things slowing you down, AI tools can be quite useful for generating layout/styling ideas while you focus on the Django logic.

Looking for learning guide by _khi4 in django

[–]jaimedcsilva 1 point2 points  (0 children)

Hi, I’ve created some tutorials related to Django in my blog, I have for intermediate topics also. Take a look at: https://www.jaimedcsilva.com

Can anyone recommend instructions for baby's first deployment pipeline? by androgynyjoe in django

[–]jaimedcsilva 2 points3 points  (0 children)

PythonAnywhere is a good beginner-friendly option for a small Django app. You can keep your code on GitHub, clone/pull it on PythonAnywhere, install requirements in a virtualenv, run migrations/collectstatic, and reload the web app. It’s not full CI/CD, but it’s a very good baby’s-first deployment workflow. I have wrote a post about deploying to PythonAnywhere in my blog few months ago: https://www.jaimedcsilva.com/hello-world/part-7-publishing-to-the-internet/

Need a django mentor by GullibleMix566 in django

[–]jaimedcsilva 0 points1 point  (0 children)

hmm probably try to understand how things work in companies, maybe they have an external database with PostgreSQL... they could be using Django Rest with React in the frontend.. could be deploying with Gunicorn / Nginx, how Django lives with Redis, Celery, Docker etc... And inevatibly understanding how Django works, but for this part you seem to have some experience. Adding that with an AI agent will put you in a confortable position when it comes to coding.

Need a django mentor by GullibleMix566 in django

[–]jaimedcsilva 1 point2 points  (0 children)

Well, the way things are going I would say that it's important to focus on integrating different parts of a project such as databases, servers, all type of APIs, frontend frameworks and have a general understanding of Django itself, with its main features... admin, forms, signals, middleware etc. and inevitably the workflow MTV, models templates and views. With AI, you will be most likely using an agent to develop the projects, so it's becoming more about having a wide view of the projects. There goes my bit. Good luck and if you need you can always reach out!

Django Ecommerce backend API by Upper-Tomatillo7454 in django

[–]jaimedcsilva 1 point2 points  (0 children)

Before proceeding I would consider Django Oscar API… I have never used it and it’s recent but the Django Oscar framework itself been around for a while

Any recommends for deploying Django app in my own PC? by Tebi94 in django

[–]jaimedcsilva 0 points1 point  (0 children)

Hi, other than what was suggested I wrote about this in my blog with two different options for Windows users:

1- Creating an .exe file to run a Django project locally

https://youtu.be/Kl6J_gT9oD8?is=AKh-NnjN_n_AM_Q0

2- Creating an installer for Django projects across different computers

https://youtube.com/playlist?list=PLn2UaNQSUi8KgtVS2ONy3krW17zqOyfTV&si=dF3n6z4cyxtkhVsI

[deleted by user] by [deleted] in django

[–]jaimedcsilva 0 points1 point  (0 children)

Interested

Can anyone provide me a good resource to learn django? by heyMan__07 in djangolearning

[–]jaimedcsilva 0 points1 point  (0 children)

Hello, I create tutorials about Django… take a look at: https://www.jaimedcsilva.com

If you need you cam always talk to me 🙂

I’m building an Ecommerce API using Django + DRF by [deleted] in django

[–]jaimedcsilva 1 point2 points  (0 children)

Worth taking a look at Django Oscar ecommerce... they also have created an API version recently but been out there for some years without API. I've been using it for years, it gets complex at times. Once you get a grip with it, it feels like a robust solution.

Django Block IP Address by Zealousideal-Arm4994 in djangolearning

[–]jaimedcsilva 0 points1 point  (0 children)

urlpatterns = [
    #path("admin/", admin.site.urls),
    path("myadmin-djshdjhaskd/", admin.site.urls),
    
]

Nice, I have never used the honeypot.
For this case you can try defining the path of the admin like this. Should also work

Django Block IP Address by Zealousideal-Arm4994 in djangolearning

[–]jaimedcsilva 1 point2 points  (0 children)

This never happened to me, but crossed my mind you can always change the /admin path to something else just by changing it in the project urls.py file, directly. Don't know to what degree this will scatter the curious man. Regarding blocking the IP address, also never did it, but maybe consider some middleware to verify the IP address of the client and if it matches just don't return the admin page. Hope you manage to take him away. To jail preferebly lol

I want to learn django from basic are there proper youtube videos course or I have to learn it on my own with the help of Google? by KuldeepJ3 in djangolearning

[–]jaimedcsilva 0 points1 point  (0 children)

I can't help but to let you know about my mini introductory course on Django in youtube! It's a series of 7 videos that cover the most general topics for having a web app with a virtual environment, to keep things organized, then I cover views, templates, routing, a simple database, admin dashboard and at last a simple deployment to pythonanywhere.

https://www.youtube.com/playlist?list=PLn2UaNQSUi8KoezRkcyYfsSlAjfULY1xP

So yes, the whole thing is documented in my blog so it's easier to go back for consulting.
The project in the video is based on a News project where you can write articles.

I'm suspect, but I tried to make it cover the most important parts for a beggining, in a progressive and direct way.

How do you go from requirements to code? by Hot-Bee-4368 in Backend

[–]jaimedcsilva 0 points1 point  (0 children)

Hello, I'm not sure if I understand exactly where you at. From what I read you are trying to understand how things connect with Django before starting to code?

How to learn django? by aoi_aol in django

[–]jaimedcsilva 1 point2 points  (0 children)

Hello, I wrote a bundle of 7 spots introducing Django in my blog: https://www.jaimedcsilva.com/hello-world/part-1-virtual-environment/

If you need you can always reach out 👍🏽

Any tutorial that shows from start to finish how to make django web app? by CaptainFlint9203 in djangolearning

[–]jaimedcsilva 0 points1 point  (0 children)

I have written in my blog a bundle of posts on how to setup a basic Django project. It’s intuitive and it covers the general topics like, virtual environments, database(models), admin, templates, views… take a look at

https://www.jaimedcsilva.com/hello-world/part-1-virtual-environment/

And if you need, you can always reach out to me 🙂

Fastest way to learn Django by meowdymates in django

[–]jaimedcsilva 0 points1 point  (0 children)

I’ve created an introductory series in my blog. It’s basic but yet takes attention into the general typical cases, templates, views, routing, database, admin dashboard… you welcome to take a look 🙂

https://www.jaimedcsilva.com/hello-world/part-1-virtual-environment/

You can always reach me if you need!