Color Editor Django WebApp, see how you can Color an Image using a Webapp designed in Django.

2019-04-14 Thread Samuel Muiruri
Here's a video on how it works https://www.youtube.com/watch?v=GsYL0ELYSTI And the Site itself http://pixelart.thecoderr.com/color-editor And finally the source code (It's OpenSourced) https://github.com/six-wars/pixelart -- Checkout My Site: The Coder . I design websit

Re: Possible hack attempt

2019-02-01 Thread Samuel Muiruri
I got it handled I just wanted to point out I noticed something bizarre for two reasons: 1. Get devs on alert that this exists (I don't believe my system is compromised) 2. Ensure the community might pick on this if said hacker plans to target django sites. On Fri, Feb 1, 2019 at 3:3

Possible hack attempt

2019-02-01 Thread Samuel Muiruri
O = '/' QUERY_STRING = '' RAW_URI = '/' REMOTE_ADDR = '' REQUEST_METHOD = 'GET' SCRIPT_NAME = '' SERVER_NAME = '/home/sammy/webapp/decomagna/deco.sock' SERVER_PORT = '' SERVER_PROTOCOL = 'HTTP/1.0'

django middleware return response and prevent calling main function

2019-01-07 Thread Samuel Muiruri
I want to use a form of cache using django middleware/context-processors. I do know it's simpler to just add the decorator at the top of the function but for reasons I have to do it this way. Using this as my example of my function def cache_results(request): response = {}

django use models from outside script

2019-01-05 Thread Samuel Muiruri
I have an external script that I want to have access to django's models primarily because it's an external implementation of sockets which is simple I want to see if this is possible. This is the snippet of code I added below the settings.py file based on an answer on stackoverflow. #Allow

Re: CreateView autoset field

2018-04-15 Thread Samuel Muiruri
users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/CAFVSD1q7CBvFc8wPfEMRyjad0MOmk > N1e7Ph4GBmY_48xCrFtcA%40mail.gmail.com > <https://groups.google.com/d/msgid/djang

Re: I'm trying to edit address form for Saleor ecommerce platform

2018-04-14 Thread Samuel Muiruri
"adress_form_lines" you need to follow it to where you get the data from then follow that to wherever the model is, maybe it's instanced somewhere inside the model like class Model(models.Model): ... def __str__(self): return self.company_name anyway likely it's noted where

Re: ImportError: No module named 'main'

2018-04-14 Thread Samuel Muiruri
try this INSTALLED_APPS = [ ... #'DjangoRestfulServer', #remove you don't import the main project 'main', #no need for substanciating an app ] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Re: How to handle a migration that last too long for being deployed?

2018-04-14 Thread Samuel Muiruri
Maybe not adequate but you could dump_data from a model and load_data and not have migrate load data also at the same time. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send a

Re: registration with cities...

2018-04-14 Thread Samuel Muiruri
Will tell you the possible ways to tackle this. 1. You assign the user model with a city name so when you filter results for a user you also filter to match the city they're in. 2. You use the browser locate feature to get gps info (latitude, longitude) feed that to django through ja

Re: CreateView autoset field

2018-04-14 Thread Samuel Muiruri
on the models for example info = models.CharField(max_length=100, default='West Indiana') -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr.

Verify Emails

2018-04-07 Thread Samuel Muiruri
*exists and also use it to get back those that don't so you can remove them from your list like dummy emails provided to your subscription page. -- Best Regards, Samuel Muiruri. Student in Machine Learning & a veteran web developer. <https://www.avast.com/sig-email?utm_medium=em

new Feature: yay or neigh?

2018-04-07 Thread Samuel Muiruri
%} -- Best Regards, Samuel Muiruri. Student in Machine Learning & a veteran web developer. <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. www.avast.com <https://www.avast.co

Re: Abridged summary of django-users@googlegroups.com - 37 updates in 18 topics

2018-03-27 Thread Samuel Muiruri
uirements and provide a feedback. > Regards > > On Monday, March 26, 2018 at 12:03:28 AM UTC+5:30, prince gosavi wrote: > ...more > <http://groups.google.com/group/django-users/msg/22f48204b0af3?utm_source=digest&utm_medium=email> > Back to top <#m_-8114719966638835162_di

Re: figuring out bug with django cookies: not working on server

2017-10-02 Thread Samuel Muiruri
ookie('service_id', service_id) return response On Tue, Oct 3, 2017 at 1:05 AM, ADEWALE ADISA wrote: > can you show the code where you set the cookie before retrieving it > On Oct 2, 2017 6:35 PM, "Samuel Muiruri" wrote: > >> I have a site that relies on checking

Re: What's the simple way to implement a chat system in Django?

2017-10-02 Thread Samuel Muiruri
You'll end up needing to use sockets to get a "live chat" and channels is one of the quickest way to get there. On Monday, October 2, 2017 at 6:39:48 PM UTC+3, Kishore Srinivas wrote: > > I want to make a chat system in Django, but all those channel stuffs looks > difficult , so are there any o

figuring out bug with django cookies: not working on server

2017-10-02 Thread Samuel Muiruri
I have a site that relies on checking if a cookie exists for service_id and if it does checks if you can upload files for service... this works nicely offline but on pushing changes to server it created a bug where even though the cookie can be seen (on the dev console) [image: enter image de

Processing data sent by sockets in django-channels

2017-09-04 Thread Samuel Muiruri
t.send({"test":"data"}); } then I can move to having this trigger a background process so I can send the status and finally the final result via sockets. -- Best Regards, Samuel Muiruri. Web Designer | +254 738 940064 -- You received this message because you

django-channels get the json post on connect

2017-08-31 Thread Samuel Muiruri
I have this in routing.py for django-channels channel_routing = [ # Wire up websocket channels to our consumers: route("websocket.connect", ws_connect), route("websocket.receive", ws_message), ] and the ws_connect looks like this @channel_session def ws_connect(message, key): # Acce

get json sent to channels in view

2017-08-30 Thread Samuel Muiruri
] File "/usr/local/lib/python2.7/dist-packages/channels/message.py", line 36, in __getitem__ return self.content[key] KeyError: 'test' -- Best Regards, Samuel Muiruri. Web Designer | +254 738 940064 -- You received this message because you are subscribed to the Google G

django migration error: django.db.utils.ProgrammingError: must be owner of relation account_userprofile

2017-08-28 Thread Samuel Muiruri
getting this error when I'm running migrate, to note this is likely related to the db connection I believe (revampenv) sammy@samuel-pc:~/revamp$ python manage.py migrate Operations to perform: Apply all migrations: account, sessions, admin, auth, thumbnail, contenttypes, gallery Running migrat

Re: Setting up a "update" async with channels

2017-08-28 Thread Samuel Muiruri
rom > inside a consumer, consumers should be nonblocking), for both updates and > when it exits > > Andrew > > On Mon, Aug 28, 2017 at 3:53 AM, Samuel Muiruri > wrote: > >> Hi, >> I want to use django-channels to show progress report of a background >>

Setting up a "update" async with channels

2017-08-28 Thread Samuel Muiruri
very "x" seconds 4. final feedback with result sent and closes connection I've gotten through setting up channels and the starting tutorial, if you can give me an example on this will be appreciated. -- Best Regards, Samuel Muiruri. Web Designer | +254 738 940064 -- You re

permission denied for relation gallery_image

2017-07-19 Thread Samuel Muiruri
I try this command from the shell from gallery.models import Image I get back ProgrammingError: permission denied for relation gallery_image -- Best Regards, Samuel Muiruri. Web Designer | +254 738 940064 -- You received this message because you are subscribed to the Google Groups &q

Prevent field from becoming null

2015-12-10 Thread Samuel Muiruri
Hello, I want to override the save for the show model so I check for if the value passed for a field is null if so ignore saving for the field class Shows(models.Model): some_field = models.CharField(max_length=128, default="something") def save(self, *args, **kwargs): super(Show

Prevent field from becoming null

2015-12-10 Thread Samuel Muiruri
Hello, I want to override the save for the show model so I check for if the value passed for a field is null if so ignore saving for the field class Shows(models.Model): some_field = models.CharField(max_length=128, default="something") def save(self, *args, **kwargs): super(Show

Error with creating mysite first django tutorial

2012-01-27 Thread samuel muiruri
I'm having a problem with the procedure stated on making you're first project... I'm not sure how exactly it should work since python syntax can't work with the dashes and command prompt of window wouldn't i need to navigate to the folder where the admin file is? I'm good with python I'm just stuck