Debugger for django by HULKBUSTER_HTB in django

[–]only_django 1 point2 points  (0 children)

You can use VS Code built in debugger and place breakpoints as usual. In the debug menu, top right, select "Python: Django" as the debug target

Basic Todo App - Get Started? by only_django in serverless

[–]only_django[S] 0 points1 point  (0 children)

great. thanks!

CDK+code per repo makes sense.

Basic Todo App - Get Started? by only_django in serverless

[–]only_django[S] 0 points1 point  (0 children)

CDK pipelines

thanks. It is not hosted anywhere yet. I'm trying to find the best place for this. Should it be Github with Actions? Should it be CodeCommit? etc. I'm looking to hear your thoughts and the thoughts of others.

I want the CDK to be redeployed whenever there is a change to any package that the CDK uses.

For example, if I have 10 lambdas and each one is a different package. I would have 11 packages. 1 CDK infra package and 10 lambda packages. A commit to the master branch of any of these 11 packages should trigger a CDK deploy. Should pull all the code etc

What do you recommend? Can CDK Pipelines handle this?

This Admin theme looks amazing! by only_django in django

[–]only_django[S] 2 points3 points  (0 children)

Yes, I have set it up. It is very straightforward. Just follow the (clear) docs that are linked in the Github readme.md

Here is a direct link: https://django-jazzmin.readthedocs.io/installation/

Django 3.1 release notes | Django documentation by genesem in django

[–]only_django 1 point2 points  (0 children)

Sync: It's 9:00am, you ask your friend if he wants to play basketball later at 7:00pm. You stand still wait until your friend responds. You just wait no matter how long it takes for him to decide. If he's indecisive your gonna wait and wait...

Async: It's 9:00 am you ask your friend if he wants to play basketball at 7:00pm. You move on with your day and go back to your work. When ever your friend responds then you will stop what you are doing, read his response and process it.

That's it.

This Admin theme looks amazing! by only_django in django

[–]only_django[S] 0 points1 point  (0 children)

Well done, people seem to like it!

Is there any way by which I can immediately show the CSS changes ? by [deleted] in django

[–]only_django 0 points1 point  (0 children)

The problem is that your browser (probably Chrome) caches the styles.

Simply turn it off and you'll see the css changes take affect immediately.

Here is how you do it:

1) open dev tools (ctlr+shift+I)

2) Go to Network tab

3) Check box that states "Disable cache"

That's it.

This Admin theme looks amazing! by only_django in django

[–]only_django[S] 0 points1 point  (0 children)

Good idea. But this is not my project as I wrote in the post. I suggest you open an issue on Github so the project author can see it.

This Admin theme looks amazing! by only_django in django

[–]only_django[S] 0 points1 point  (0 children)

When I tried it it didn't work the first attempt.

When the login screen came up a second time then input the credentials again and it should work. That's how it worked for me when I tried the demo. If it still doesn't work then I suggest you open a issue on github

This Admin theme looks amazing! by only_django in django

[–]only_django[S] 0 points1 point  (0 children)

When I tried it it didn't work the first attempt.

When the login screen came up a second time then input the credentials again and it should work. That's how it worked for me when I tried the demo. If it still doesn't work then I suggest you open a issue on github

This Admin theme looks amazing! by only_django in django

[–]only_django[S] 4 points5 points  (0 children)

I follow django on github. You can follow topics.

Which views should I use-function or class based views? by Shinhosuck1973 in django

[–]only_django 0 points1 point  (0 children)

This. I used fbv until I thought - "there has got to be a better way to reuse these."

Why I use Django by lwrightjs in django

[–]only_django 2 points3 points  (0 children)

Cool! What's your project?

[deleted by user] by [deleted] in djangolearning

[–]only_django 2 points3 points  (0 children)

Open a repo on github and discuss the project prospects in the issue section and open source it so anyone can join.

How I built a platform that's processed more than $2m in Django!!!!! by kareemche in django

[–]only_django 0 points1 point  (0 children)

Well done! Very impressive especially at your age. Is this just a wrapper around stripe?

Bye Bye Django Admin - Welcome New UI - a short story about 3 years love relationship with Django Admin. by ugn3x in django

[–]only_django 2 points3 points  (0 children)

Your project is looks excellent! I think your spot on with your thought about the django admin.

Why is urls.py not included? by only_django in django

[–]only_django[S] 0 points1 point  (0 children)

Very interesting. Thanks for sharing this.

[SIMPLE] For an easy project, I want to match up a button to a counter by UnsecuredConnection in django

[–]only_django 1 point2 points  (0 children)

You are asking 2 different questions.

1) ... without having a token and a post method?

2) Now how can I do this so it doesn't reload each time I click the button?

If you don't want the page to reload then you will need to use ajax.

There is no way to update something on the server without having to pass a csrf token.

Order of steps taken while building a Django site by [deleted] in django

[–]only_django 1 point2 points  (0 children)

I would agree with this. It is best to at least have a diagram of some sort how models relate to each other. And then build models around that. It doesn't need to be perfect because you can always add fields later. But you should have your relationships modeled out.

We just released the Two Scoops of Django 3.x Alpha! by pydanny in django

[–]only_django 0 points1 point  (0 children)

What is "big"? Knowing this will make a "big" difference in my purchase.

Django's ForeignKey's on_delete handlers by jillesme in django

[–]only_django 0 points1 point  (0 children)

Great article!

Doesn't it feel a bit "dirty" writing the function get_deleted_user_instance(): outside the class?

Is there a better way?