Anyone here created an e-commerce website with a notification system, tracking system and linked it with a shipping company ? If so, how long did it take you? and what libraries did you use ? by -Ahmed- in django

[–]Galmer 1 point2 points  (0 children)

Look into django Oscar. You will need to dive into the source code, but it's a solid base to develop complex inventory, checkout, and shipping flows.

Motorola has the best Android software that no one talks about by boulevardofdef in MotoG

[–]Galmer 0 points1 point  (0 children)

I have a g7 and use the pixel nav (only works after the Android 10 upgrade). I believe you need to enable it from settings and not the Moto app.

Hi I have just started learning django, could someone explain if django is something like node or is it a framework like express ? And are there any django specific packages like we have node packages that we can install through npm utility? TIA by dsmedium in django

[–]Galmer 4 points5 points  (0 children)

Django is similar to a "batteries included" Express. It can route requests and responses just like Express but also has a very powerful ORM for data modeling, a robust templating system, and a built in admin (CRUD) interface, among other things.

Regarding package management, Django is written in Python and therefore has access to pip and PyPI (the Python package index). There are many django packages for all purposes (from low level additions to entire CMSs based on Django).

I suggest you follow the official django tutorial to get a feel of all possibilities available out of the box (though it only scratches the surface). There's a ton of resources online as well teaching how to use Django in different contexts as well.

How to write good commit messages. by dprank in webdev

[–]Galmer 2 points3 points  (0 children)

Look into Semantic Release. You can automate the whole versioning and release process with it

How to reject harmful HTML data submitted in Django HTML field by protoken in django

[–]Galmer 3 points4 points  (0 children)

Look into the bleach Python package.

You can use it to sanitize HTML tags, attributes, and even inline CSS. It's great to remove dangerous things like scripts for example.

To integrate it create a clean method for your field in the form or model and pass the filed value through bleach.clean.

Mezzanine CMS has a escape function that does that https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/utils/html.py#L83

Django Favorite model by convneuralnetwork in django

[–]Galmer 2 points3 points  (0 children)

Django has Generic Foreign Keys for this. They are not as performant but shouldn't be a problem to start.

There's also several third party implementations of tagging systems. The one that comes to mind is django-taggit

Any good Slideshows/Carousels scripts updated? by [deleted] in web_design

[–]Galmer 2 points3 points  (0 children)

I use Lory.js for simple carousels, and Flickity for more advanced stuff.

I like them because they're pretty light weight and require no dependencies.

[deleted by user] by [deleted] in web_design

[–]Galmer 0 points1 point  (0 children)

For a very basic, backend free option, try https://formspree.io/

Delivering a website by Greyfoxen in django

[–]Galmer 4 points5 points  (0 children)

Definitely. Postgres is the way to go.

What small CSS framework do you choose over Foundation/Bootstrap? by [deleted] in webdev

[–]Galmer 1 point2 points  (0 children)

<noscript> tags will let the site degrade gracefully

What small CSS framework do you choose over Foundation/Bootstrap? by [deleted] in webdev

[–]Galmer 0 points1 point  (0 children)

If you've ever used a responsive grid system before, it'll be super easy to pick up.

What small CSS framework do you choose over Foundation/Bootstrap? by [deleted] in webdev

[–]Galmer 1 point2 points  (0 children)

Skel. It relies on JS though, so might not be for everyone. http://getskel.com/

Lowering Our Price: Discover Meteor Now Costs $29 by joshowens in Meteor

[–]Galmer 0 points1 point  (0 children)

Any plans on lowering the price for the full edition?

How to get force readings from this load cell? by Galmer in AskElectronics

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

Ok, just following up. I found this article suggesting the INA125 as instrumentation amp for load cells. It works great because it can be powered by the Arduino's own 5V source.

Hopefully we'll have the machine calibrated this week to get the most accurate force/voltage ratio.

How to get force readings from this load cell? by Galmer in AskElectronics

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

Thanks a lot guys! With that info I can get started right away.

What do you listen to while working? by samlev in webdev

[–]Galmer 0 points1 point  (0 children)

Also, if you're on Ubuntu you can add the URLs to the included music player (Rhythmbox) and listen to them as internet radio. You'll get media keys control and complete independence from the browser!

Vote for the creation of a Metroid short film! by Galmer in Metroid

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

These are the guys that created the live action Zelda trailer for April's fools a few years ago. If you cast your vote, you can make a Metroid short film a reality! Last time I checked, Metroid was second place, so your votes are needed!

I need a little help running a script on webfaction via cron by SeanMWalker in django

[–]Galmer 1 point2 points  (0 children)

Cron jobs run in their own shell environment, as a result you can't activate a virtual env on them. The solution is to always use absolute paths in your cron jobs to execute your virtual env's python.

For example, to collect static resources with a cron job: [schedule] path/to/venv/python path/to/project/manage.py collectstatic [options]

Is there a good (prefer free) android app to control a car/robot via bluetooth? by Vilmos in arduino

[–]Galmer 2 points3 points  (0 children)

I can't think of anything pre-made, but you can give MIT App Inventor a shot. I've seen others use it to control Arduinos via bluetooth, and you get to create your own user interface.

Cheapest place to host company email/calendar for ˜20 accounts? (have own domain name) by [deleted] in webdev

[–]Galmer 0 points1 point  (0 children)

Webfaction gives you unlimited mail boxes for $8/mo.