Cover photo
Απόστολος Βλαχόπουλος
Works at Nokia Solution and Networks
Attends Aristotle University of Thessaloniki
Lives in Thessaloniki Greece, Θεσσαλονίκη Ελλάδα


Hello to the great community. I did an upgrade from 13.10 to 14.04 final beta, without fresh install. As expected it deactivated some of my ppa's but now i can't seem to be able to re-activate them. One of them is the ubuntu-sdk ppa which if I am not mistaken there is one for Trusty. It let's me choose it i enter password but it won't activate. How can I solve this?
Απόστολος Βλαχόπουλος's profile photoMichał Prędotka's profile photoVincent Disco's profile photo
Oh wait, this was for the SDK? Disregard my comment then (though you could always bet on multiple horses and try at as well).
Add a comment...
Thought I might get some answers here. Basically I want to use SessionAuthentication with tastypie. But django uses csrf_token. Tastypie views won't provide me with one. How can I use a valid token to post data on tastypie views?
Alexander Lapshin's profile photoΑπόστολος Βλαχόπουλος's profile photo
Yes i have seen this, but it uses basic authentication and authorization. I am using basic right now and everything works fine, but i need to use Django's (DjangoAuthorization, SessionAuthentication), so permissions will be set. But they need the csrftoken, which i don't know how to pass to tastypie views
Add a comment...
Απόστολος Βλαχόπουλος's profile photoStepan Prokipchyn's profile photo
With proxy models you could modify or extend your existing model without changing one. For example you can add sorting, filtering, add additional column or row, or even modify the data. Without changing your model class, but rather by wrapping it.

Check for details.
There are some sample proxy model implemented by Qt, but you will probably need to implement new
Add a comment...
I want to override the save method of a model. 
I have a customer model and a project model. Project model has a propery model which is a ForeignKey to customer

class Project(models.Model):
      ........more properties........
      customer = models.ForeignKey(Customer)

I want to override the save method of the Project model so when a new project is created it should also change the value of a property of  customer. 

I tried this:
 def save(self, *args, **kwargs):
        self.customer.current_amount_owed += self.cost
        super(Project, self).save(*args, **kwargs)

for testing purposes but didn't work at all. It is not even called(i tried to print something from inside save and the message did not appear on the console)

Any suggestions or good reading?
Thomas Woolford's profile photoΑπόστολος Βλαχόπουλος's profile photoRaymond McGinlay's profile photo
you'd better of using the debug framework rather than print statements, then you could send your debug message to file, email  or whatever. Here's slightly old tutorial but looks ok. 
Add a comment...
Hello to this great community. I have a question. How can i make eric's editor autocomplete django code. I have installed the plugin and loaded the api but the api is old. It has the 0.96.api and the 1.0.2.api and they are missing things like django.utils.timezone module. How can i make it work with 1.5.1 i have installed in my system? Or from the documents is it possible?
Sergey Russkih's profile photoΑπόστολος Βλαχόπουλος's profile photo
Emacs OS?what is that?
Add a comment...
Any help in this? There are some test picture links for testing in the comments
Add a comment...
is it possible to add the already there admin functionality (like filtering, ordering,  the javascript calendar in datetime fields etc) in the front pages of a django project?
Απόστολος Βλαχόπουλος's profile photoRei Ayanami's profile photoThomas Weissel's profile photo

you can use the datetime widget in your frontend.. just edit the form to use the widget and add the files needed to your template..

also you could browse the source code of django - admin and have a look how they did it, then copy it to your own project
Add a comment...
suppose you have something like this. 
a url like   /teacher/add/ and url /student/add. And teacher and student are models in the same app. Is there a way to have one for both teacher and student?How would it work?
urlpatterns = patterns('',   
    url(r'^desknet/teacher/', include('app.urls')),
    url(r'^desknet/student/', include('app.urls')),

urlpatterns = patterns(' ', 
    url(r'^add/$ ', 'add_teacher_view')
    url(r'^add/$ ', 'add_student_view')

Obviously this one wouldn't work right? Is there a django way to make it work?Or is the only way to change the urls?
Mi-e Foame's profile photoRobert Węglarek's profile photoMike Drawback's profile photoΑπόστολος Βλαχόπουλος's profile photo
+Robert Węglarek +Mike Drawback Thank you too.. Will look into it...
Add a comment...
The qt Creator installed using ubuntu-sdk I installed doesn't contain the help docs of qt....Can i install them after installing ubuntu-sdk somehow?
Add a comment...
I get this error when trying to launch either ubuntu or plain qt creator. It worked since the last updates. Any help? Ubuntu 12.10.

qtcreator: symbol lookup error: /usr/lib/i386-linux-gnu/qt5/plugins/platforms/ undefined symbol: _ZN15QPlatformWindow17formatWindowTitleERK7QStringS2
Zane Swafford's profile photoJarek W's profile photoΑπόστολος Βλαχόπουλος's profile photo
+J whatever....I won't even continue the conversation....
Add a comment...
Not trying to "fish" for advertisments...but could anyoneone suggest some webhosting that is veeeery django friendly?And i mean either installing django on the host or maybe like uploading your files after you have developed locally?
Απόστολος Βλαχόπουλος's profile photoFerdy Rodríguez's profile photoMiguel Mendez's profile photoScot Hacker's profile photo
Tons of Django-friendly web hosts listed at
Add a comment...
Can someone explain what exactly bootstrap is and why would someone use it in his django app/project?
Horst Gutmann's profile photoJean-Christophe “Jice” Lavocat's profile photoΑπόστολος Βλαχόπουλος's profile photoRémy Sanchez's profile photo
Kind of. Just think HTML/CSS as the native drawing library for your system, and Bootstrap as something higher level like Qt or GTK
Add a comment...
Bragging rights
Είμαι υπερήφανος που είμαι εγώ..και μετριόφρων...
  • Aristotle University of Thessaloniki
    Μ.Sc Θεωρητική Πληροφορική Θεωρία Συστημάτων και Ελέγχου, 2011 - present
  • Technological Educational Institute Of Thessaloniki
    Accounting, 1999 - 2004
  • University of Macedonia Thessaloniki
    Applied Informatics, 2005 - 2011
  • Αρσάκειο Λύκειο Θεσσαλονίκης
    4η Δέσμη
  • Αρσάκειο Γυμνάσιο Θεσσαλονίκης
Basic Information
Software developer at Nokia Solution and networks
Python, django, javascript, Ajax, MySQL, Linux, Apache
  • Nokia Solution and Networks
    Software developer, 2015 - present
  • Rhombus Software Systems
    Django Developer, 2013 - 2015
    Developing web apps using Django python and javascript.
  • Φροντιστήριο ΕΛΙΞ
    Καθηγητής ΑΕΠΠ Γ' Λυκείου, 2011 - 2015
  • Συμμετρο Φροντιστήριο
    Καθηγητής ΑΕΠΠ Γ' Λυκείου, 2005 - 2006
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Thessaloniki Greece, Θεσσαλονίκη Ελλάδα
Πολύ καλό φαγητό καλη μπύρα ωραια ατμόσφαιρα...
Public - 3 years ago
reviewed 3 years ago
1 review